summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.restart_webgui9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc.restart_webgui b/etc/rc.restart_webgui
index 463f934..d1fbc21 100755
--- a/etc/rc.restart_webgui
+++ b/etc/rc.restart_webgui
@@ -8,10 +8,15 @@ require("shaper.inc");
require("captiveportal.inc");
require("rrd.inc");
-mwexec("killall -9 lighttpd");
-
echo "Restarting webConfigurator...";
+mwexec("killall -INT lighttpd");
+
+while (exec("ps ax | grep lighttpd | grep -v grep")) {
+ echo '.';
+ sleep(1);
+}
+
system_webgui_start();
captiveportal_init_webgui();
OpenPOWER on IntegriCloud