conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2

Dimitry Andric dim at
Fri Oct 28 23:40:12 UTC 2011

The following reply was made to PR conf/161710; it has been noted by GNATS.

From: Dimitry Andric <dim at>
To: bug-followup at, at
Subject: Re: conf/161710: SSHD starts on boot even if  sshd_enable=&quot;NO&quot;
 in 8.2
Date: Sat, 29 Oct 2011 01:30:45 +0200

 This is a multi-part message in MIME format.
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 Aha, now I see the cause of the problem.  A similar case to yours was
 actually reported in conf/156427:
 There is an issue in /etc/rc.subr, which was introduced accidentally in
 r206686, fixed in head in r220760, and later merged to stable/8 in
 but this was after 8.2 released, unfortunately.
 You should be able to fix it by applying just the diff to rc.subr, which
 I have attached for your convenience.
 Content-Type: text/x-diff;
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 --- etc/rc.subr	2011/04/22 23:42:23	220957
 +++ etc/rc.subr	2011/04/22 23:44:25	220958
 @@ -651,7 +651,8 @@
  					#	checkyesno ${rcvar}
  					# and return if that failed
 -		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a -z "${rc_pid}" ]; then
 +		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a "$rc_arg" != "stop" ] ||
 +		    [ -n "${rcvar}" -a "$rc_arg" = "stop" -a -z "${rc_pid}" ]; then
  			if ! checkyesno ${rcvar}; then
  				if [ -n "${rc_quiet}" ]; then
  					return 0

More information about the freebsd-rc mailing list