summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_services.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 96c49c5..584c8bc 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -66,6 +66,7 @@ if($_GET['mode'] == "restartservice" and !empty($_GET['service'])) {
captiveportal_init_webgui();
break;
case 'ntpd':
+ case 'openntpd':
system_ntp_configure();
break;
case 'bsnmpd':
@@ -113,6 +114,7 @@ if($_GET['mode'] == "startservice" and !empty($_GET['service'])) {
captiveportal_init_webgui();
break;
case 'ntpd':
+ case 'openntpd':
system_ntp_configure();
break;
case 'bsnmpd':
@@ -160,6 +162,9 @@ if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) {
case 'ntpd':
killbyname("ntpd");
break;
+ case 'openntpd':
+ killbyname("openntpd");
+ break;
case 'bsnmpd':
killbypid("{$g['varrun_path']}/snmpd.pid");
break;
@@ -181,9 +186,6 @@ if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) {
case 'miniupnpd':
upnp_action('stop');
break;
- case 'openntpd':
- killbyname("openntpd");
- break;
case 'sshd':
killbyname("sshd");
break;
@@ -323,8 +325,7 @@ if (isset($config['ipsec']['enable'])) {
foreach (array('server', 'client') as $mode) {
if (is_array($config['openvpn']["openvpn-{$mode}"])) {
- foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $settings) {
- $setting =& $config['openvpn']["openvpn-{$mode}"][$id];
+ foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) {
if (!isset($setting['disable'])) {
$pconfig = array();
$pconfig['name'] = "openvpn";
OpenPOWER on IntegriCloud