From 35f9e62422c4d10ac25bbdd2767d404d5cb682df Mon Sep 17 00:00:00 2001 From: Till Maas Date: Mon, 17 Mar 2014 11:43:52 +0100 Subject: [PATCH] service module: Properly disable Debian services Services on Debian need to be disabled with 'disable' instead of 'remove' to avoid them being enabled again when 'update-rc.d $service defaults' is run, e.g. as part of a postinst script. --- system/service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/service b/system/service index 2e26a47b636..8219e9c456a 100644 --- a/system/service +++ b/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