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