mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
cleanup configd commands (sshd)
This commit is contained in:
parent
590f006d8d
commit
df59cb0d1b
@ -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']);
|
||||
|
||||
6
src/opnsense/service/conf/actions.d/actions_sshd.conf
Normal file
6
src/opnsense/service/conf/actions.d/actions_sshd.conf
Normal file
@ -0,0 +1,6 @@
|
||||
[restart]
|
||||
command:/usr/local/etc/rc.sshd
|
||||
parameters:
|
||||
type:script
|
||||
message:starting sshd
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user