From 6233e72001c4c8d785b7e82123ee6fb4c8c93a6e Mon Sep 17 00:00:00 2001 From: Simon Hafner Date: Sat, 24 Oct 2015 00:18:43 +0200 Subject: [PATCH] added earlier paths to systemd https://github.com/systemd/systemd/commit/2b583ce6576d4a074ce6f1570b3e60b65c64ae7d https://github.com/systemd/systemd/commit/b925e72633bf98438f56a140520e07ec8c959e46 --- system/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/service.py b/system/service.py index 227d34c1463..d08b6cd6746 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():