diff options
author | Simon Rettberg | 2020-05-14 17:23:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-14 17:23:14 +0200 |
commit | 95b277eb2d0c7f6ae9e112b52955153d5b7c01e9 (patch) | |
tree | 84e66ade3d5edcb7d23d6d2364dd300ada2aa93a /modules-available/rebootcontrol/hooks | |
parent | [statistics] Fix lastboot, uptime and status filters (diff) | |
download | slx-admin-95b277eb2d0c7f6ae9e112b52955153d5b7c01e9.tar.gz slx-admin-95b277eb2d0c7f6ae9e112b52955153d5b7c01e9.tar.xz slx-admin-95b277eb2d0c7f6ae9e112b52955153d5b7c01e9.zip |
[rebootcontrol] cron: Bail out if WOL listening failed
Diffstat (limited to 'modules-available/rebootcontrol/hooks')
-rw-r--r-- | modules-available/rebootcontrol/hooks/cron.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/rebootcontrol/hooks/cron.inc.php b/modules-available/rebootcontrol/hooks/cron.inc.php index e387e055..8a839767 100644 --- a/modules-available/rebootcontrol/hooks/cron.inc.php +++ b/modules-available/rebootcontrol/hooks/cron.inc.php @@ -36,7 +36,7 @@ function spawnDestinationListener($dstid, &$destMachine, &$destTask, &$destDeadl $destDeadline = 0; foreach ($destMachines as $machine) { cron_log("Trying to use {$machine['clientip']} as listener for " . long2ip($machine['bcast'])); - $destTask = RebootControl::runScript([$machine], "echo 'Running-MARK'\nbusybox timeout -t 8 jawol -v -l", 10); + $destTask = RebootControl::runScript([$machine], "echo 'Running-MARK'\nbusybox timeout -t 8 jawol -v -l -l", 10); Taskmanager::release($destTask); $destDeadline = time() + 10; if (!Taskmanager::isRunning($destTask)) |