Reboot not capturing inactive units anymore

This commit is contained in:
Jeroen De Meerleer 2017-05-19 09:50:47 +02:00
parent 3c9ead5da7
commit 38f2ac9140
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

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