Use shutdown -r now when resstoring config. The RRD graphing tar process is somehow blocking!? on this operation causing the reboot to fail.

This commit is contained in:
Scott Ullrich 2006-04-22 22:11:14 +00:00
parent 1ddc3e2aad
commit ff598ca2c9

View File

@ -286,7 +286,12 @@ include("head.inc");
<?php
if($reboot_needed == true) {
mwexec("/etc/rc.reboot");
ob_flush();
flush();
sleep(5);
while(file_exists("{$g['varrun_path']}/config.lock"))
sleep(3);
mwexec("/sbin/shutdown -r now");
exit;
}