diff options
Diffstat (limited to 'src/etc')
-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(); |