fix error processing

pull/11667/head
Ilya Zuyev 2021-06-21 21:49:28 -07:00
parent 5a3ad1ed7b
commit 654a963b2f
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func (s *Systemd) ForceStop(svc string) error {
if err == nil {
return nil
}
if strings.Contains(rr.Output(), fmt.Sprintf("Unit %s.service not loaded", svc)) {
if strings.Contains(rr.Output(), fmt.Sprintf("Unit %s not loaded", svc)) {
// already stopped
return nil
}