(s service.Service)
| 54 | return |
| 55 | } |
| 56 | func (p *Program) Stop(s service.Service) error { |
| 57 | close(p.exit) |
| 58 | |
| 59 | fmt.Fprintln(p.log, "Program stopping", p.cfg.DisplayName) |
| 60 | if p.cmd.Process != nil { |
| 61 | p.cmd.Process.Kill() |
| 62 | } |
| 63 | |
| 64 | os.Exit(0) |
| 65 | return nil |
| 66 | } |
no outgoing calls
no test coverage detected