diff --git a/library/system/service b/library/system/service index 2e26a47b636..8219e9c456a 100644 --- a/library/system/service +++ b/library/system/service @@ -658,7 +658,8 @@ class LinuxService(Service): return self.execute_command("%s %s enable" % (self.enable_cmd, self.name)) else: - return self.execute_command("%s -f %s remove" % (self.enable_cmd, self.name)) + return self.execute_command("%s %s disable" % (self.enable_cmd, + self.name)) # we change argument depending on real binary used: # - update-rc.d and systemctl wants enable/disable