Date: Mon, 1 Jul 2013 20:46:35 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r252478 - stable/8/etc/rc.d Message-ID: <201307012046.r61KkZ5n049736@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Jul 1 20:46:35 2013 New Revision: 252478 URL: http://svnweb.freebsd.org/changeset/base/252478 Log: MFC r252062: 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 Modified: stable/8/etc/rc.d/sshd Directory Properties: stable/8/etc/rc.d/ (props changed) Modified: stable/8/etc/rc.d/sshd ============================================================================== --- stable/8/etc/rc.d/sshd Mon Jul 1 20:45:55 2013 (r252477) +++ stable/8/etc/rc.d/sshd Mon Jul 1 20:46:35 2013 (r252478) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307012046.r61KkZ5n049736>