From 0791c99e7412012a0cd0b5880a050bcbe0c2b005 Mon Sep 17 00:00:00 2001 From: "Kim B. Heino" Date: Sat, 5 Dec 2020 13:06:32 +0200 Subject: [PATCH] systemd_status: fix autoconf to check if systemd is running --- plugins/systemd/systemd_status | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/systemd/systemd_status b/plugins/systemd/systemd_status index ee895324..042348f3 100755 --- a/plugins/systemd/systemd_status +++ b/plugins/systemd/systemd_status @@ -103,7 +103,8 @@ def fetch(): if __name__ == '__main__': if len(sys.argv) > 1 and sys.argv[1] == 'autoconf': - print('yes') + print('yes' if os.path.exists('/run/systemd/system') else + 'no (systemd is not running)') elif len(sys.argv) > 1 and sys.argv[1] == 'config': config() else: