mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
check if system was booted with systemd
This commit is contained in:
parent
a59a5ccc7f
commit
e1e129d962
@ -74,7 +74,7 @@ def win_service(servicelist, option=False, memcpu=False):
|
||||
def lnx_service(services_list, memcpu=False):
|
||||
"""Creates modules for Linux servers"""
|
||||
modules = []
|
||||
sysctl = getstatusoutput("command -v systemctl")[0]
|
||||
sysctl = getstatusoutput("systemd-notify --booted")[0]
|
||||
servic = getstatusoutput("command -v service")[0]
|
||||
for srvc in services_list:
|
||||
status = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user