parent
51fae74e7c
commit
923e442409
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue