Commit fe4566b0 authored by Ad Schellevis's avatar Ad Schellevis

fix parameter for webgui restart delay

parent 98f2edac
......@@ -7,9 +7,9 @@ require_once('shaper.inc');
require_once('captiveportal.inc');
require_once('rrd.inc');
if (count($argv) > 1 && $argv[1] == 'delayed') {
if (count($argv) > 1 && is_numeric($argv[1])) {
// starting delayed.
sleep(2);
sleep($argv[1]);
}
echo 'Restarting webConfigurator...';
......
......@@ -160,7 +160,7 @@ if ($_POST['resetlogs'] == gettext("Reset Log Files")) {
ob_flush();
flush();
log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
configd_run("webgui restart delayed", true);
configd_run("webgui restart 2", true);
$savemsg .= "<br />" . gettext("WebGUI process is restarting.");
}
......
......@@ -615,7 +615,7 @@ if ($restart_webgui) {
ob_flush();
flush();
log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
configd_run("webgui restart delayed", true);
configd_run("webgui restart 2", true);
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment