summaryrefslogtreecommitdiffstats
path: root/etc/rc.restart_webgui
diff options
context:
space:
mode:
authorlgcosta <lgcosta@pfsense.org>2011-06-03 04:14:13 -0300
committerlgcosta <lgcosta@pfsense.org>2011-06-03 04:15:47 -0300
commit8c0199ea8bcf4cebb4218c28da7f0039d1ff07d6 (patch)
tree7308049b54abdf5f1bb52cadeb311994db6d2a43 /etc/rc.restart_webgui
parent67dde8b052369be24d25e94bc1d2070a08c56f2a (diff)
downloadpfsense-8c0199ea8bcf4cebb4218c28da7f0039d1ff07d6.zip
pfsense-8c0199ea8bcf4cebb4218c28da7f0039d1ff07d6.tar.gz
Better management for reload lighttpd
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..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