Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
1 cb7d18d5 Renato Botelho
#!/usr/local/bin/php-cgi -f
2 8b52f644 Scott Ullrich
<?php
3 ac24dc24 Renato Botelho
/*
4
 * rc.restart_webgui
5
 *
6
 * part of pfSense (https://www.pfsense.org)
7 81299b5c Renato Botelho
 * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
8 ac24dc24 Renato Botelho
 * All rights reserved.
9
 *
10 b12ea3fb Renato Botelho
 * Licensed under the Apache License, Version 2.0 (the "License");
11
 * you may not use this file except in compliance with the License.
12
 * You may obtain a copy of the License at
13 ac24dc24 Renato Botelho
 *
14 b12ea3fb Renato Botelho
 * http://www.apache.org/licenses/LICENSE-2.0
15 ac24dc24 Renato Botelho
 *
16 b12ea3fb Renato Botelho
 * Unless required by applicable law or agreed to in writing, software
17
 * distributed under the License is distributed on an "AS IS" BASIS,
18
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
 * See the License for the specific language governing permissions and
20
 * limitations under the License.
21 ac24dc24 Renato Botelho
 */
22 8b52f644 Scott Ullrich
23 c81ef6e2 Phil Davis
require_once("config.inc");
24
require_once("functions.inc");
25
require_once("shaper.inc");
26
require_once("captiveportal.inc");
27 1b34f8a7 Ermal
require_once("rrd.inc");
28 8b52f644 Scott Ullrich
29 04b44931 Scott Ullrich
echo "Restarting webConfigurator...";
30
31 ac223911 Renato Botelho
/* Stop all running nginx processes */
32
$pidfiles = glob("{$g['varrun_path']}/nginx*.pid");
33
34
foreach ($pidfiles as $pidfile) {
35
	killbypid($pidfile);
36
}
37 8c0199ea lgcosta
38 8b52f644 Scott Ullrich
system_webgui_start();
39 d5b7b3cc Scott Ullrich
40 769e254e Ermal
captiveportal_init_webgui();
41 8b52f644 Scott Ullrich
42 d5b7b3cc Scott Ullrich
enable_rrd_graphing();
43
44 28c4ed21 Scott Ullrich
echo " done.\n\n";
45 04b44931 Scott Ullrich
46 769e254e Ermal
?>