check if system was booted with systemd

This commit is contained in:
Kevin 2024-04-16 13:16:16 +02:00
parent a59a5ccc7f
commit e1e129d962
1 changed files with 1 additions and 1 deletions

View File

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