cleanup configd commands (sshd)

This commit is contained in:
Ad Schellevis 2015-04-07 19:38:16 +00:00
parent 590f006d8d
commit df59cb0d1b
4 changed files with 9 additions and 9 deletions

View File

@ -379,7 +379,7 @@ if (!function_exists('service_control_start')) {
vpn_ipsec_force_reload();
break;
case 'sshd':
configd_run("service restart sshd");
configd_run("sshd restart");
break;
case 'openvpn':
$vpnmode = isset($extras['vpnmode']) ? htmlspecialchars($extras['vpnmode']) : htmlspecialchars($extras['mode']);
@ -523,7 +523,7 @@ if (!function_exists('service_control_restart')) {
vpn_ipsec_force_reload();
break;
case 'sshd':
configd_run("service restart sshd");
configd_run("sshd restart");
break;
case 'openvpn':
$vpnmode = htmlspecialchars($extras['vpnmode']);

View File

@ -0,0 +1,6 @@
[restart]
command:/usr/local/etc/rc.sshd
parameters:
type:script
message:starting sshd

View File

@ -34,9 +34,3 @@ parameters:
type:script
message:Starting nptd
[reload|restart.sshd]
command:/usr/local/etc/rc.sshd
parameters:
type:script
message:starting sshd

View File

@ -608,7 +608,7 @@ if ($restart_sshd) {
if ($config['system']['ssh']['enabled']) {
log_error(gettext("secure shell configuration has changed. Restarting sshd."));
configd_run("service restart sshd");
configd_run("sshd restart");
}
}
if ($restart_webgui) {