MCPcopy
hub / github.com/baetyl/baetyl / Stop

Method Stop

program/program.go:56–66  ·  view source on GitHub ↗
(s service.Service)

Source from the content-addressed store, hash-verified

54 return
55}
56func (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}

Callers 11

runMethod · 0.95
reportingMethod · 0.80
cleaningMethod · 0.80
RemoteWebsocketFunction · 0.80
ApplyAppMethod · 0.80
DeleteAppMethod · 0.80
applyFunction · 0.80
service.goFile · 0.80
CancelMethod · 0.80
reportingMethod · 0.80
activatingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected