Merge pull request #2231 from tonk/devel

Service command handling fix when no upstart config file
This commit is contained in:
Michael DeHaan 2013-02-28 04:44:43 -08:00
commit 6c9bb35f89

View file

@ -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