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 |
38809d47
|
Renato Botelho do Couto
|
* Copyright (c) 2004-2013 BSD Perimeter
|
8 |
|
|
* Copyright (c) 2013-2016 Electric Sheep Fencing
|
9 |
8f2f85c3
|
Luiz Otavio O Souza
|
* Copyright (c) 2014-2022 Rubicon Communications, LLC (Netgate)
|
10 |
ac24dc24
|
Renato Botelho
|
* All rights reserved.
|
11 |
|
|
*
|
12 |
b12ea3fb
|
Renato Botelho
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
13 |
|
|
* you may not use this file except in compliance with the License.
|
14 |
|
|
* You may obtain a copy of the License at
|
15 |
ac24dc24
|
Renato Botelho
|
*
|
16 |
b12ea3fb
|
Renato Botelho
|
* http://www.apache.org/licenses/LICENSE-2.0
|
17 |
ac24dc24
|
Renato Botelho
|
*
|
18 |
b12ea3fb
|
Renato Botelho
|
* Unless required by applicable law or agreed to in writing, software
|
19 |
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
20 |
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21 |
|
|
* See the License for the specific language governing permissions and
|
22 |
|
|
* limitations under the License.
|
23 |
ac24dc24
|
Renato Botelho
|
*/
|
24 |
8b52f644
|
Scott Ullrich
|
|
25 |
c81ef6e2
|
Phil Davis
|
require_once("config.inc");
|
26 |
|
|
require_once("functions.inc");
|
27 |
|
|
require_once("shaper.inc");
|
28 |
|
|
require_once("captiveportal.inc");
|
29 |
1b34f8a7
|
Ermal
|
require_once("rrd.inc");
|
30 |
8b52f644
|
Scott Ullrich
|
|
31 |
04b44931
|
Scott Ullrich
|
echo "Restarting webConfigurator...";
|
32 |
|
|
|
33 |
ac223911
|
Renato Botelho
|
/* Stop all running nginx processes */
|
34 |
|
|
$pidfiles = glob("{$g['varrun_path']}/nginx*.pid");
|
35 |
|
|
|
36 |
|
|
foreach ($pidfiles as $pidfile) {
|
37 |
|
|
killbypid($pidfile);
|
38 |
|
|
}
|
39 |
8c0199ea
|
lgcosta
|
|
40 |
8b52f644
|
Scott Ullrich
|
system_webgui_start();
|
41 |
d5b7b3cc
|
Scott Ullrich
|
|
42 |
769e254e
|
Ermal
|
captiveportal_init_webgui();
|
43 |
8b52f644
|
Scott Ullrich
|
|
44 |
d5b7b3cc
|
Scott Ullrich
|
enable_rrd_graphing();
|
45 |
|
|
|
46 |
28c4ed21
|
Scott Ullrich
|
echo " done.\n\n";
|
47 |
04b44931
|
Scott Ullrich
|
|
48 |
769e254e
|
Ermal
|
?>
|