summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.restart_webgui
blob: 45034acdc5dfbe46cd93163d8657c0a9afb6572c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/local/bin/php-cgi -f

<?php

require("config.inc");
require("functions.inc");
require("shaper.inc");
require("captiveportal.inc");
require_once("rrd.inc");

echo "Restarting webConfigurator...";

/* Stop all running nginx processes */
$pidfiles = glob("{$g['varrun_path']}/nginx*.pid");

foreach ($pidfiles as $pidfile) {
	killbypid($pidfile);
}

system_webgui_start();

captiveportal_init_webgui();

enable_rrd_graphing();

echo " done.\n\n";

?>
OpenPOWER on IntegriCloud