diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-08 14:39:33 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-08 14:39:33 -0200 |
commit | ac2239116431422e653121f7318f99a173338df2 (patch) | |
tree | 9b0fa732fc84d05efc8629ed3197bf6086908c33 | |
parent | 96cb4c984faca2cb45e4696e121252d079b9ee9b (diff) | |
download | pfsense-ac2239116431422e653121f7318f99a173338df2.zip pfsense-ac2239116431422e653121f7318f99a173338df2.tar.gz |
Stop all nginx processes before attempt to start new ones. Fixes #5746
-rwxr-xr-x | src/etc/rc.restart_webgui | 7 |
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(); |