From e1e129d962019820b00e6702104f47018bbd7348 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 16 Apr 2024 13:16:16 +0200 Subject: [PATCH] check if system was booted with systemd --- pandora_agents/unix/plugins/autodiscover | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_agents/unix/plugins/autodiscover b/pandora_agents/unix/plugins/autodiscover index 01b9bd3d96..c47b17c275 100644 --- a/pandora_agents/unix/plugins/autodiscover +++ b/pandora_agents/unix/plugins/autodiscover @@ -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