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

Method IsEnable

core/utils/controller/manager/sysvinit.go:28–30  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

26 return err == nil, nil
27}
28func (s *Sysvinit) IsEnable(serviceName string) (bool, error) {
29 return isSysvServiceEnabled(serviceName)
30}
31func (s *Sysvinit) IsExist(serviceName string) (bool, error) {
32 if _, err := os.Stat(filepath.Join("/etc/init.d", serviceName)); err != nil {
33 if os.IsNotExist(err) {

Callers

nothing calls this directly

Calls 1

isSysvServiceEnabledFunction · 0.70

Tested by

no test coverage detected