diff options
author | delphij <delphij@FreeBSD.org> | 2013-06-21 17:23:19 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-06-21 17:23:19 +0000 |
commit | 8d3f5f270f62e1ca418f0b0b69ede89ac0c31511 (patch) | |
tree | 33ee7b72d4ab6a127c89035662d6ae22d9077e05 /etc/rc.d/sshd | |
parent | 2687a6b31b2f707d5cac3034092c3cae2933b0e7 (diff) | |
download | FreeBSD-src-8d3f5f270f62e1ca418f0b0b69ede89ac0c31511.zip FreeBSD-src-8d3f5f270f62e1ca418f0b0b69ede89ac0c31511.tar.gz |
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
Diffstat (limited to 'etc/rc.d/sshd')
-rwxr-xr-x | etc/rc.d/sshd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd index aad672c..490a1c7 100755 --- a/etc/rc.d/sshd +++ b/etc/rc.d/sshd @@ -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" |