diff options
-rwxr-xr-x | usr/local/www/status_services.php | 9 |
1 files changed, 9 insertions, 0 deletions
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; |