From 96155ce43c1ae96aead4dd6f311f4c45adeeebf1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 8 Jan 2009 17:20:55 +0000 Subject: Correct status -> service entries for ntpd Based on a patch submitted-by: David Rees --- usr/local/www/status_services.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usr') diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index 58d7139..c7e9891 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -52,6 +52,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; @@ -92,6 +95,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; @@ -130,6 +136,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; -- cgit v1.1