From 38f2ac9140fa25d94b8b99f4ca4013efb978453d Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 19 May 2017 09:50:47 +0200 Subject: [PATCH] Reboot not capturing inactive units anymore --- webcron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcron.php b/webcron.php index 63b296e..9a1d7ce 100644 --- a/webcron.php +++ b/webcron.php @@ -39,7 +39,7 @@ if (file_exists("cache/get-services.trigger")) { if (file_exists("cache/reboot-time.trigger") && file_get_contents("cache/reboot-time.trigger") < time()) { $rebootjobs = unserialize(file_get_contents("cache/get-services.trigger")); $services = array(); - exec("sudo systemctl list-units --all | cat", $services); + exec("sudo systemctl list-units | cat", $services); $services = implode("\n", $services); foreach($rebootjobs as $job) {