summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.restart_webgui
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-08 14:39:33 -0200
committerRenato Botelho <renato@netgate.com>2016-01-08 14:39:33 -0200
commitac2239116431422e653121f7318f99a173338df2 (patch)
tree9b0fa732fc84d05efc8629ed3197bf6086908c33 /src/etc/rc.restart_webgui
parent96cb4c984faca2cb45e4696e121252d079b9ee9b (diff)
downloadpfsense-ac2239116431422e653121f7318f99a173338df2.zip
pfsense-ac2239116431422e653121f7318f99a173338df2.tar.gz
Stop all nginx processes before attempt to start new ones. Fixes #5746
Diffstat (limited to 'src/etc/rc.restart_webgui')
-rwxr-xr-xsrc/etc/rc.restart_webgui7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/etc/rc.restart_webgui b/src/etc/rc.restart_webgui
index d65b4d3..45034ac 100755
--- a/src/etc/rc.restart_webgui
+++ b/src/etc/rc.restart_webgui
@@ -10,7 +10,12 @@ require_once("rrd.inc");
echo "Restarting webConfigurator...";
-sigkillbypid("{$g['varrun_path']}/nginx-webConfigurator.pid", "TERM");
+/* Stop all running nginx processes */
+$pidfiles = glob("{$g['varrun_path']}/nginx*.pid");
+
+foreach ($pidfiles as $pidfile) {
+ killbypid($pidfile);
+}
system_webgui_start();
OpenPOWER on IntegriCloud