mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252062
@ -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 New Issue
Block a user