Merge pull request #2231 from tonk/devel

Service command handling fix when no upstart config file
pull/2235/head
Michael DeHaan 12 years ago
commit 6c9bb35f89

@ -363,6 +363,9 @@ class LinuxService(Service):
elif location.get('update-rc.d', None) and os.path.exists("/etc/init/%s.conf" % self.name):
# service is managed by upstart
self.enable_cmd = location['update-rc.d']
elif location.get('update-rc.d', None) and os.path.exists("/etc/init.d/%s" % self.name):
# service is managed by with SysV init scripts, but with update-rc.d
self.enable_cmd = location['update-rc.d']
elif location.get('systemctl', None):
# verify service is managed by systemd

Loading…
Cancel
Save