Merge pull request #2231 from tonk/devel
Service command handling fix when no upstart config file
This commit is contained in:
commit
6c9bb35f89
1 changed files with 13 additions and 10 deletions
|
@ -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…
Reference in a new issue