MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / HandleRestart

Function HandleRestart

agent/utils/controller/controller.go:69–75  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

67 return Handle("stop", service)
68}
69func HandleRestart(serviceName string) error {
70 service, err := LoadServiceName(serviceName)
71 if err != nil {
72 return err
73 }
74 return Handle("restart", service)
75}
76
77func CheckExist(serviceName string) (bool, error) {
78 service, err := LoadServiceName(serviceName)

Callers

nothing calls this directly

Calls 2

LoadServiceNameFunction · 0.70
HandleFunction · 0.70

Tested by

no test coverage detected