Implement DisableNow for OpenRC

pull/11632/head
Ilya Zuyev 2021-06-22 12:07:32 -07:00
parent f02dc1ed92
commit 5522dbc481
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ func (s *OpenRC) Disable(svc string) error {
// DisableNow not implemented for openRC
func (s *OpenRC) DisableNow(svc string) error {
return fmt.Errorf("disable now is not implemented for OpenRC! PRs to fix are welcomed")
// supposed to do disable + stop
// disable does nothing for OpenRC, so just Stop here
return s.Stop(svc)
}
// Mask does nothing