added earlier paths to systemd

2b583ce657
b925e72633
reviewable/pr18780/r1
Simon Hafner 9 years ago
parent e65c0f896a
commit 6233e72001

@ -403,7 +403,7 @@ class LinuxService(Service):
self.svc_initscript = initscript
def check_systemd():
return os.path.exists("/run/systemd/system/")
return os.path.exists("/run/systemd/system/") or os.path.exists("/dev/.run/systemd/") or os.path.exists("/dev/.systemd/")
# Locate a tool to enable/disable a service
if location.get('systemctl',False) and check_systemd():

Loading…
Cancel
Save