summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/hooks/cron.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2020-06-29 14:04:45 +0200
committerSimon Rettberg2020-07-30 13:27:19 +0200
commit6635ff74f8266aa72f4243258561a5ae8d3915ac (patch)
tree062ae0d9c2a28943fb7a0e7f87a64f78281c6ab3 /modules-available/remoteaccess/hooks/cron.inc.php
parent[statistics_reporting] Fix numer of unique users and server CPU model (diff)
downloadslx-admin-6635ff74f8266aa72f4243258561a5ae8d3915ac.tar.gz
slx-admin-6635ff74f8266aa72f4243258561a5ae8d3915ac.tar.xz
slx-admin-6635ff74f8266aa72f4243258561a5ae8d3915ac.zip
[remoteaccess] Fix/Improve WOL behavior
Enable rebootcontrol module in ensureMachinesRunning(), so it works from the call in api.inc.php. Consider machines that we sent a WOL packet to during the last 90 seconds as online when counting number of idle machines, so slow booting machines won't cause us to wake too many machines.
Diffstat (limited to 'modules-available/remoteaccess/hooks/cron.inc.php')
-rw-r--r--modules-available/remoteaccess/hooks/cron.inc.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules-available/remoteaccess/hooks/cron.inc.php b/modules-available/remoteaccess/hooks/cron.inc.php
index 3e0e130b..2ee6e375 100644
--- a/modules-available/remoteaccess/hooks/cron.inc.php
+++ b/modules-available/remoteaccess/hooks/cron.inc.php
@@ -1,6 +1,3 @@
<?php
-if (!Module::isAvailable('rebootcontrol'))
- return;
-
RemoteAccess::ensureMachinesRunning();