summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-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