func (s *ServiceMock) Start() *exec.Cmd {

	s.ServiceStartCount++
	cmd := s.ExecFunc()
	cmd.Start()
	if s.processes == nil {
		s.processes = make(map[int]*exec.Cmd)
	}
	s.processes[cmd.Process.Pid] = cmd

	return cmd
}
func (s *ServiceMock) Start() *exec.Cmd {

	s.ServiceStartCount++
	cmd := s.ExecFunc()
	cmd.Start()
	if s.processes == nil {
		s.processes = make(map[int]*exec.Cmd)
	}
	s.processes[cmd.Process.Pid] = cmd

	return cmd
}
func ( s * ServiceMock ) Start ( ) * exec . Cmd { s . ServiceStartCount ++ cmd := s . ExecFunc ( ) cmd . Start ( ) if s . processes == nil { s . processes = make ( map [ int ] * exec . Cmd ) } s . processes [ cmd . Process . Pid ] = cmd return cmd }
// Start a Service and log its output.
Start a Service and log its output .