Commit 0bec29a6 by Michael DeHaan

Merge pull request #6524 from tyll/update_rc_d_disable

service module: Properly disable Debian services
parents 2a656b2c c21fa8eb
......@@ -687,7 +687,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment