MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / IsEnable

Method IsEnable

agent/utils/controller/manager/openrc.go:25–27  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

23 return err == nil, nil
24}
25func (s *Openrc) IsEnable(serviceName string) (bool, error) {
26 return isSysvServiceEnabled(serviceName)
27}
28func (s *Openrc) IsExist(serviceName string) (bool, error) {
29 _, err := os.Stat(filepath.Join("/etc/init.d", serviceName))
30 if err != nil {

Callers

nothing calls this directly

Calls 1

isSysvServiceEnabledFunction · 0.70

Tested by

no test coverage detected