svn commit: r252062 - head/etc/rc.d

Xin LI delphij at FreeBSD.org
Fri Jun 21 17:23:20 UTC 2013


Author: delphij
Date: Fri Jun 21 17:23:19 2013
New Revision: 252062
URL: http://svnweb.freebsd.org/changeset/base/252062

Log:
  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

Modified:
  head/etc/rc.d/sshd

Modified: head/etc/rc.d/sshd
==============================================================================
--- head/etc/rc.d/sshd	Fri Jun 21 15:55:03 2013	(r252061)
+++ head/etc/rc.d/sshd	Fri Jun 21 17:23:19 2013	(r252062)
@@ -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"


More information about the svn-src-head mailing list