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

Function HandleRestart

core/utils/controller/controller.go:95–101  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

93 return Handle("stop", service)
94}
95func HandleRestart(serviceName string) error {
96 service, err := LoadServiceName(serviceName)
97 if err != nil {
98 return err
99 }
100 return Handle("restart", service)
101}
102
103func CheckExist(serviceName string) (bool, error) {
104 service, err := LoadServiceName(serviceName)

Callers

nothing calls this directly

Calls 2

LoadServiceNameFunction · 0.70
HandleFunction · 0.70

Tested by

no test coverage detected