diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-16 17:34:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-16 17:34:37 +0000 |
commit | 6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8 (patch) | |
tree | 795a235a90649c611abc74efc705b8316b1fcfa5 /usr | |
parent | c5ff4e16cfc222dc0e77280a70ed883d52ec62fb (diff) | |
download | pfsense-6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8.zip pfsense-6c3e2b19adb7e3b0efe0a42deba4546b5b6a37c8.tar.gz |
Add logic to restart service similar to star service code.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_services.php | 15 |
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."; } |