summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-16 17:34:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-16 17:34:37 +0000
commit6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8 (patch)
tree795a235a90649c611abc74efc705b8316b1fcfa5 /usr/local/www/status_services.php
parentc5ff4e16cfc222dc0e77280a70ed883d52ec62fb (diff)
downloadpfsense-6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8.zip
pfsense-6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8.tar.gz
Add logic to restart service similar to star service code.
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index ddc84d7..92b68bf 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -34,7 +34,20 @@ function gentitle_pkg($pgname) {
}
if($_GET['mode'] == "restartservice" and $_GET['service']) {
- restart_service($_GET['service']);
+ switch($_GET['service']) {
+ case 'bsnmpd':
+ services_snmpd_configure();
+ break;
+ case 'dnsmasq':
+ services_dnsmasq_configure();
+ break;
+ case 'dhcpd':
+ services_dhcpd_configure();
+ break;
+ default:
+ restart_service($_GET['service']);
+ break;
+ }
$savemsg = "{$_GET['service']} has been restarted.";
}
OpenPOWER on IntegriCloud