diff options
author | Simon Rettberg | 2014-11-26 21:01:37 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-11-26 21:01:37 +0100 |
commit | 177791970ee86a6653b051ee393801ad37134d70 (patch) | |
tree | 696fd696c89d4d587365fa7172ab0e184e183f07 /inc/event.inc.php | |
parent | Add HTTPS config module for webif, update everything to use FileUtil class, m... (diff) | |
download | slx-admin-177791970ee86a6653b051ee393801ad37134d70.tar.gz slx-admin-177791970ee86a6653b051ee393801ad37134d70.tar.xz slx-admin-177791970ee86a6653b051ee393801ad37134d70.zip |
Lots of small bugfixes, proxy config WIP, https config WIP, translation updates, added masterpassword to pxe menu, ...
Diffstat (limited to 'inc/event.inc.php')
-rw-r--r-- | inc/event.inc.php | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/inc/event.inc.php b/inc/event.inc.php index 376deb6f..95d75e33 100644 --- a/inc/event.inc.php +++ b/inc/event.inc.php @@ -26,8 +26,7 @@ class Event $mountId = Trigger::mount(); $autoIp = Trigger::autoUpdateServerIp(); $ldadpId = Trigger::ldadp(); - $ipxeId = Trigger::ipxe(); - + Taskmanager::submit('DozmodLauncher', array( 'operation' => 'start' )); @@ -60,23 +59,12 @@ class Event EventLog::failure("The server's IP address could not be determined automatically, and there is no valid address configured."); $everythingFine = false; } - // iPXE generation - if ($ipxeId === false) { - EventLog::failure('Cannot generate PXE menu: Taskmanager unreachable!'); - $everythingFine = false; - } else { - $res = Taskmanager::waitComplete($ipxeId, 5000); - if (Taskmanager::isFailed($res)) { - EventLog::failure('Update PXE Menu failed', $res['data']['error']); - $everythingFine = false; - } - } // Just so we know booting is done (and we don't expect any more errors from booting up) if ($everythingFine) { EventLog::info('Bootup finished without errors.'); } else { - EventLog::info('There were errors during bootup. Maybe the server is not fully configured yet.'); + EventLog::warning('There were errors during bootup. Maybe the server is not fully configured yet.'); } } @@ -85,9 +73,11 @@ class Event */ public static function serverIpChanged() { - Trigger::rebuildAdModules(); + global $tidAdModules, $tidIpxe; + $tidAdModules = Trigger::rebuildAdModules(); + $tidIpxe = Trigger::ipxe(); } - + /** * The activated configuration changed. */ |