mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 02:33:18 +00:00
systemd_status: fix autoconf to check if systemd is running
This commit is contained in:
parent
f8fef4cf73
commit
0791c99e74
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue