Correct status -> service entries for ntpd

Based on a patch submitted-by: David Rees <drees76+AT+gmail.com>
This commit is contained in:
Scott Ullrich 2009-01-08 17:21:00 +00:00
parent f20f6a347c
commit fc373d0ecb
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,9 @@ function get_pkg_descr($package_name) {
if($_GET['mode'] == "restartservice" and $_GET['service']) {
switch($_GET['service']) {
case 'ntpd':
system_ntp_configure();
break;
case 'bsnmpd':
services_snmpd_configure();
break;
@ -71,6 +74,9 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) {
if($_GET['mode'] == "startservice" and $_GET['service']) {
switch($_GET['service']) {
case 'ntpd':
system_ntp_configure();
break;
case 'bsnmpd':
services_snmpd_configure();
break;
@ -99,6 +105,9 @@ if($_GET['mode'] == "startservice" and $_GET['service']) {
/* stop service */
if($_GET['mode'] == "stopservice" && $_GET['service']) {
switch($_GET['service']) {
case 'ntpd':
killbyname("ntpd");
break;
case 'bsnmpd':
killbypid("{$g['varrun_path']}/snmpd.pid");
break;