(serviceName string)
| 27 | return err == nil, nil |
| 28 | } |
| 29 | func (s *Openrc) IsEnable(serviceName string) (bool, error) { |
| 30 | return isSysvServiceEnabled(serviceName) |
| 31 | } |
| 32 | func (s *Openrc) IsExist(serviceName string) (bool, error) { |
| 33 | if _, err := os.Stat(filepath.Join("/etc/init.d", serviceName)); err != nil { |
| 34 | if os.IsNotExist(err) { |
nothing calls this directly
no test coverage detected