func (s *ServiceManager) Setup() {
	log.Println("[DEBUG] setting up a service manager")

	s.commandCreatedChan = make(chan *exec.Cmd)
	s.commandCompleteChan = make(chan *exec.Cmd)
	s.processMap = processMap{processes: make(map[int]*exec.Cmd)}

	// Listen for service create/kill
	go s.addServiceMonitor()
	go s.removeServiceMonitor()
}
func (s *ServiceManager) Setup() {
	log.Println("[DEBUG] setting up a service manager")

	s.commandCreatedChan = make(chan *exec.Cmd)
	s.commandCompleteChan = make(chan *exec.Cmd)
	s.processMap = processMap{processes: make(map[int]*exec.Cmd)}

	
	go s.addServiceMonitor()
	go s.removeServiceMonitor()
}
func ( s * ServiceManager ) Setup ( ) { log . Println ( " " ) s . commandCreatedChan = make ( chan * exec . Cmd ) s . commandCompleteChan = make ( chan * exec . Cmd ) s . processMap = processMap { processes : make ( map [ int ] * exec . Cmd ) } // Listen for service create/kill go s . addServiceMonitor ( ) go s . removeServiceMonitor ( ) }
// Setup the Management services.
Setup the Management services .