mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Call sshd_precmd instead of sshd_configtest when the operator
requests reload or restart, which, in addition of testing the configuration, will also generate host keys when they are not present (previous behavior). Obtained from: FreeNAS Ok'ed by: bdrewery, des MFC after: 1 week
This commit is contained in:
parent
43e695497c
commit
b19408db1a
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ rcvar="sshd_enable"
|
|||
command="/usr/sbin/${name}"
|
||||
keygen_cmd="sshd_keygen"
|
||||
start_precmd="sshd_precmd"
|
||||
reload_precmd="sshd_configtest"
|
||||
restart_precmd="sshd_configtest"
|
||||
reload_precmd="sshd_precmd"
|
||||
restart_precmd="sshd_precmd"
|
||||
configtest_cmd="sshd_configtest"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
extra_commands="configtest keygen reload"
|
||||
|
|
|
|||
Loading…
Reference in a new issue