svn commit: r250195 - stable/9/etc/rc.d

Bryan Drewery bdrewery at FreeBSD.org
Thu May 2 21:49:44 UTC 2013


Author: bdrewery (ports committer)
Date: Thu May  2 21:49:43 2013
New Revision: 250195
URL: http://svnweb.freebsd.org/changeset/base/250195

Log:
  MFC r249489,249555
  
    Run configtest before restarting so that the system is not
    left without a running sshd.
  
    Also call configtest before reload to ensure working config.

Modified:
  stable/9/etc/rc.d/sshd
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/rc.d/sshd
==============================================================================
--- stable/9/etc/rc.d/sshd	Thu May  2 21:09:47 2013	(r250194)
+++ stable/9/etc/rc.d/sshd	Thu May  2 21:49:43 2013	(r250195)
@@ -14,6 +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"
 configtest_cmd="sshd_configtest"
 pidfile="/var/run/${name}.pid"
 extra_commands="configtest keygen reload"


More information about the svn-src-stable-9 mailing list