1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

systemd_status: fix autoconf to check if systemd is running

This commit is contained in:
Kim B. Heino 2020-12-05 13:06:32 +02:00 committed by Lars Kruse
parent f8fef4cf73
commit 0791c99e74

View file

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