mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
1ddc3e2aad
commit
ff598ca2c9
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user