1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

added earlier paths to systemd

2b583ce657
b925e72633
This commit is contained in:
Simon Hafner 2015-10-24 00:18:43 +02:00 committed by Matt Clay
parent 51fae74e7c
commit 923e442409

View file

@ -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():