diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-10-24 00:18:43 +0200 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-10-24 00:20:59 +0200 |
commit | 6233e72001c4c8d785b7e82123ee6fb4c8c93a6e (patch) | |
tree | 488302849faf0b59ca02ff91cc8c243e7440c11c | |
parent | e65c0f896a3938738e861325f39b87d6e1114442 (diff) | |
download | ansible-modules-core-6233e72001c4c8d785b7e82123ee6fb4c8c93a6e.tar.gz |
added earlier paths to systemd
https://github.com/systemd/systemd/commit/2b583ce6576d4a074ce6f1570b3e60b65c64ae7d
https://github.com/systemd/systemd/commit/b925e72633bf98438f56a140520e07ec8c959e46
-rw-r--r-- | system/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/service.py b/system/service.py index 227d34c1..d08b6cd6 100644 --- a/system/service.py +++ b/system/service.py @@ -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(): |