summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2012-06-15 15:13:19 +0200
committerbcyrill <cyrill@bannwart.info>2012-06-15 15:13:19 +0200
commit0ed8d746e27ad07c82ed1cbe44d2831d3e5cbe86 (patch)
tree6c08bbb8b7d505b9900f5444c5120ed4e6fc8cf7 /usr/local/www/status_services.php
parent12b0fa564dc9b9ffe1773855e6ab528f4a5c7a5e (diff)
downloadpfsense-0ed8d746e27ad07c82ed1cbe44d2831d3e5cbe86.zip
pfsense-0ed8d746e27ad07c82ed1cbe44d2831d3e5cbe86.tar.gz
Add radvd to Status:Services #2485
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 4f90c46..e49c09c 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -62,6 +62,9 @@ function get_pkg_descr($package_name) {
if($_GET['mode'] == "restartservice" and !empty($_GET['service'])) {
switch($_GET['service']) {
+ case 'radvd':
+ services_radvd_configure();
+ break;
case 'captiveportal':
$zone = $_GET['zone'];
killbypid("{$g['varrun_path']}/lighty-{$zone}-CaptivePortal.pid");
@@ -116,6 +119,9 @@ if($_GET['mode'] == "restartservice" and !empty($_GET['service'])) {
if($_GET['mode'] == "startservice" and !empty($_GET['service'])) {
switch($_GET['service']) {
+ case 'radvd':
+ services_radvd_configure();
+ break;
case 'captiveportal':
$zone = $_GET['zone'];
captiveportal_init_webgui_zonename($zone);
@@ -165,6 +171,9 @@ if($_GET['mode'] == "startservice" and !empty($_GET['service'])) {
/* stop service */
if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) {
switch($_GET['service']) {
+ case 'radvd':
+ killbypid("{$g['varrun_path']}/radvd.pid");
+ break;
case 'captiveportal':
$zone = $_GET['zone'];
killbypid("{$g['varrun_path']}/lighty-{$zone}-CaptivePortal.pid");
@@ -260,6 +269,13 @@ else
/* Add services that are in the base.
*
*/
+if(is_radvd_enabled()) {
+ $pconfig = array();
+ $pconfig['name'] = "radvd";
+ $pconfig['description'] = gettext("Router Advertisement Daemon");
+ $services[] = $pconfig;
+}
+
if(isset($config['dnsmasq']['enable'])) {
$pconfig = array();
$pconfig['name'] = "dnsmasq";
OpenPOWER on IntegriCloud