summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-09-28 11:38:05 -0400
committerjim-p <jimp@pfsense.org>2011-09-28 11:39:49 -0400
commitd353423564517a5038f57996769cb488ec802d7a (patch)
tree4eb59f64116183414c362b6d863ffae664c1cadd /usr/local/www/status_services.php
parenta5566aa8a92b300381bba071cf40e37407d086c1 (diff)
downloadpfsense-d353423564517a5038f57996769cb488ec802d7a.zip
pfsense-d353423564517a5038f57996769cb488ec802d7a.tar.gz
Add relayd to Status > Services and widget. Add capability to kill when restarting instead of a simple reload. Implements #1913
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 2303054..5061213 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -42,6 +42,7 @@ require_once("captiveportal.inc");
require_once("service-utils.inc");
require_once("ipsec.inc");
require_once("vpn.inc");
+require_once("vslb.inc");
function gentitle_pkg($pgname) {
global $config;
@@ -101,6 +102,9 @@ if($_GET['mode'] == "restartservice" and !empty($_GET['service'])) {
}
}
break;
+ case 'relayd':
+ relayd_configure(true);
+ break;
default:
restart_service($_GET['service']);
break;
@@ -145,6 +149,9 @@ if($_GET['mode'] == "startservice" and !empty($_GET['service'])) {
mwexec_bg("/usr/local/sbin/openvpn --config {$configfile}");
}
break;
+ case 'relayd':
+ relayd_configure();
+ break;
default:
start_service($_GET['service']);
break;
@@ -201,6 +208,9 @@ if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) {
killbypid($pidfile);
}
break;
+ case 'relayd':
+ mwexec('pkill relayd');
+ break;
default:
stop_service($_GET['service']);
break;
@@ -337,6 +347,13 @@ foreach (array('server', 'client') as $mode) {
}
}
+if (count($config['load_balancer']['virtual_server']) && count($config['load_balancer']['lbpool'])) {
+ $pconfig = array();
+ $pconfig['name'] = "relayd";
+ $pconfig['description'] = gettext("Server load balancing daemon");
+ $services[] = $pconfig;
+}
+
function service_name_compare($a, $b) {
if (strtolower($a['name']) == strtolower($b['name']))
return 0;
OpenPOWER on IntegriCloud