summaryrefslogtreecommitdiffstats
path: root/etc/rc.restart_webgui
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.restart_webgui')
-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..e74f201 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...";
+sigkillbyname("lighttpd", "INT");
+
+while (is_process_running("lighttpd")) {
+ echo '.';
+ sleep(1);
+}
+
system_webgui_start();
captiveportal_init_webgui();
OpenPOWER on IntegriCloud