diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-10 23:09:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-10 23:09:25 +0000 |
commit | d01b286feaadb05537140825804a006d6574261c (patch) | |
tree | 554e5ba3ceb43020ab9684a8355044fccc7960a3 /usr | |
parent | b39dc701e59d5b3f2986f98fb3c710b9bc6d36df (diff) | |
download | pfsense-d01b286feaadb05537140825804a006d6574261c.zip pfsense-d01b286feaadb05537140825804a006d6574261c.tar.gz |
Teach status services how to start system services
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_services.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index c3deaad..1dc06af 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -39,7 +39,18 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) { } if($_GET['mode'] == "startservice" and $_GET['service']) { - start_service($_GET['service']); + switch($_GET['service']) { + case 'bsnmpd'; + services_snmpd_configure(); + break; + case 'dnsmasq'; + services_dnsmasq_configure(); + break; + case 'dhcpd'; + services_dhcpd_configure(); + break; + start_service($_GET['service']); + } $savemsg = "{$_GET['service']} has been started."; } |