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

Method IsEnable

agent/utils/controller/manager/sysvinit.go:24–26  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isSysvServiceEnabledFunction · 0.70

Tested by

no test coverage detected