summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/sshd
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-06-21 17:23:19 +0000
committerdelphij <delphij@FreeBSD.org>2013-06-21 17:23:19 +0000
commit8d3f5f270f62e1ca418f0b0b69ede89ac0c31511 (patch)
tree33ee7b72d4ab6a127c89035662d6ae22d9077e05 /etc/rc.d/sshd
parent2687a6b31b2f707d5cac3034092c3cae2933b0e7 (diff)
downloadFreeBSD-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-xetc/rc.d/sshd4
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"
OpenPOWER on IntegriCloud