Skip to content

Commit

Permalink
Correct status -> service entries for ntpd
Browse files Browse the repository at this point in the history
Based on a patch submitted-by: David Rees <drees76+AT+gmail.com>
  • Loading branch information
Scott Ullrich committed Jan 8, 2009
1 parent f20f6a3 commit fc373d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions usr/local/www/status_services.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -71,6 +74,9 @@ function get_pkg_descr($package_name) {

if($_GET['mode'] == "startservice" and $_GET['service']) {
switch($_GET['service']) {
case 'ntpd':
system_ntp_configure();
break;
case 'bsnmpd':
services_snmpd_configure();
break;
Expand Down Expand Up @@ -99,6 +105,9 @@ function get_pkg_descr($package_name) {
/* 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;
Expand Down

0 comments on commit fc373d0

Please sign in to comment.