more debug stuff

pull/11666/head
Ilya Zuyev 2021-06-11 18:16:13 -07:00
parent 9d64921653
commit 9d65d85314
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ func (s *Systemd) Active(svc string) bool {
// Disable disables a service
func (s *Systemd) Disable(svc string) error {
_, err := s.r.RunCmd(exec.Command("sudo", "systemctl", "disable", svc))
cmd := exec.Command("sudo", "systemctl", "disable", svc)
cmd.Env = append(cmd.Env, "SYSTEMCTL_SKIP_SYSV=1")
_, err := s.r.RunCmd(cmd)
return err
}