From owner-freebsd-rc@FreeBSD.ORG Mon Oct 24 11:07:10 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC514106564A for ; Mon, 24 Oct 2011 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A9F078FC0A for ; Mon, 24 Oct 2011 11:07:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9OB7AJr025403 for ; Mon, 24 Oct 2011 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9OB7Abj025401 for freebsd-rc@FreeBSD.org; Mon, 24 Oct 2011 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Oct 2011 11:07:10 GMT Message-Id: <201110241107.p9OB7Abj025401@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 11:07:10 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/161710 rc SSHD starts on boot even if sshd_enable="NO" in 8.2 o conf/161107 rc [rc] stop_boot in mountcritlocal usage is incorrect. o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/109272 rc [request] increase default rc shutdown timeout o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 91 problems total. From owner-freebsd-rc@FreeBSD.ORG Wed Oct 26 17:29:55 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAF0E1065673; Wed, 26 Oct 2011 17:29:55 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9340A8FC17; Wed, 26 Oct 2011 17:29:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9QHTtB0028344; Wed, 26 Oct 2011 17:29:55 GMT (envelope-from delphij@freefall.freebsd.org) Received: (from delphij@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9QHTtgD028340; Wed, 26 Oct 2011 17:29:55 GMT (envelope-from delphij) Date: Wed, 26 Oct 2011 17:29:55 GMT Message-Id: <201110261729.p9QHTtgD028340@freefall.freebsd.org> To: freebsd.org@logicalsolutns.com, delphij@FreeBSD.org, freebsd-rc@FreeBSD.org From: delphij@FreeBSD.org Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 17:29:55 -0000 Synopsis: SSHD starts on boot even if sshd_enable="NO" in 8.2 State-Changed-From-To: open->closed State-Changed-By: delphij State-Changed-When: Wed Oct 26 17:29:36 UTC 2011 State-Changed-Why: Looks like a configuration error rather than bug. http://www.freebsd.org/cgi/query-pr.cgi?pr=161710 From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 19:10:12 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C056106564A for ; Fri, 28 Oct 2011 19:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC448FC0C for ; Fri, 28 Oct 2011 19:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SJABbx070610 for ; Fri, 28 Oct 2011 19:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SJABdK070609; Fri, 28 Oct 2011 19:10:11 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 19:10:11 GMT Message-Id: <201110281910.p9SJABdK070609@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: John Blazek Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable= X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Blazek List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 19:10:12 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: John Blazek To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable= Date: Fri, 28 Oct 2011 13:48:20 -0500 Hello, I respectfully request/suggest that you attempt to reproduce this, or contact me for a login to one of the servers that demonstrates this behavior. It appears you may have summarily dismissed this bug report simply on the basis of not liking inetd (based on your email suggestion to me privately). 1) inetd does not start sshd as a LISTEN service. 2) inetd is not configured to listen on EITHER of the two ports that are involved with the SSHD processes that are started 3) the double startup only occurs when sshd is invoked via /etc/rc.local on boot When the invocation is removed from rc.local "NO" instances of sshd are started. A) I don't have a closed mind. I'm more than willing to entertain that there is a configuration error. B) If it is a configuration error, then it is an error that behaved quite differently in prior versions of FreeBSD. The same configuration has been used on these servers for years. -john From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 20:40:07 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CFEC1065670 for ; Fri, 28 Oct 2011 20:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33BDA8FC0A for ; Fri, 28 Oct 2011 20:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SKe7F1057811 for ; Fri, 28 Oct 2011 20:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SKe7nh057806; Fri, 28 Oct 2011 20:40:07 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 20:40:07 GMT Message-Id: <201110282040.p9SKe7nh057806@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Dimitry Andric Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dimitry Andric List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 20:40:07 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: Dimitry Andric To: bug-followup@FreeBSD.org, freebsd.org@logicalsolutns.com Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 22:38:29 +0200 I tried reproducing this on 8-STABLE, by: 1) setting sshd_enable="NO" in /etc/rc.conf 2) setting sshd_flags="-p 9991" in /etc/rc.conf 3) adding '/usr/sbin/sshd -p 22200' to /etc/rc.local 4) adding inetd_enable="YES" in /etc/rc.conf 5) uncommenting the default ssh lines in /etc/inetd.conf End result, after rebooting, is: 1) sshd is running as "/usr/sbin/sshd -p 22200", listening on port 22200 as expected 2) inetd is listening on port 22, as expected 3) sshd is NOT started by /etc/rc.d/sshd. In fact, if you run '/etc/rc.d/sshd start', you get the expected error message about sshd not being enabled. In short, I cannot reproduce your issue. It could help if you post some more information, for example, what is the output of: /bin/sh -x /etc/rc.d/sshd start ? From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 21:30:14 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD3DF106566B for ; Fri, 28 Oct 2011 21:30:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBF3A8FC18 for ; Fri, 28 Oct 2011 21:30:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SLUEYU002235 for ; Fri, 28 Oct 2011 21:30:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SLUEOY002230; Fri, 28 Oct 2011 21:30:14 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 21:30:14 GMT Message-Id: <201110282130.p9SLUEOY002230@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: John Blazek Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Blazek List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 21:30:14 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: John Blazek To: Dimitry Andric Cc: bug-followup@FreeBSD.org Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 16:28:41 -0500 Hello, Thank you for attempting to reproduce it. I concur with your result 3b) If you try to type /etc/rc.d/sshd start -= it wont start. The servers that are exhibiting this are currently production servers and I cannot conveniently reboot them on command. I will build a fresh box and see if I can duplicate it from scratch. You are welcome to TeamView or SSH/screen view one of the servers to examine the configuration. -john At 03:38 PM 10/28/2011, Dimitry Andric wrote: >I tried reproducing this on 8-STABLE, by: > >1) setting sshd_enable="NO" in /etc/rc.conf >2) setting sshd_flags="-p 9991" in /etc/rc.conf >3) adding '/usr/sbin/sshd -p 22200' to /etc/rc.local >4) adding inetd_enable="YES" in /etc/rc.conf >5) uncommenting the default ssh lines in /etc/inetd.conf > >End result, after rebooting, is: > >1) sshd is running as "/usr/sbin/sshd -p 22200", listening on port > 22200 as expected >2) inetd is listening on port 22, as expected >3) sshd is NOT started by /etc/rc.d/sshd. In fact, if you run > '/etc/rc.d/sshd start', you get the expected error message about sshd > not being enabled. > >In short, I cannot reproduce your issue. It could help if you post some >more information, for example, what is the output of: > >/bin/sh -x /etc/rc.d/sshd start > >? From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 23:40:12 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9B17106567B for ; Fri, 28 Oct 2011 23:40:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 996478FC18 for ; Fri, 28 Oct 2011 23:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SNeCX5023978 for ; Fri, 28 Oct 2011 23:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SNeCZS023977; Fri, 28 Oct 2011 23:40:12 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 23:40:12 GMT Message-Id: <201110282340.p9SNeCZS023977@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Dimitry Andric Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dimitry Andric List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 23:40:12 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: Dimitry Andric To: bug-followup@FreeBSD.org, freebsd.org@logicalsolutns.com Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Sat, 29 Oct 2011 01:30:45 +0200 This is a multi-part message in MIME format. --------------050401080107000606050906 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: http://www.freebsd.org/cgi/query-pr.cgi?pr=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 r220958: http://svnweb.freebsd.org/base?view=revision&revision=220958 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. --------------050401080107000606050906 Content-Type: text/x-diff; name="pr156427.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pr156427.diff" --- 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 --------------050401080107000606050906-- From owner-freebsd-rc@FreeBSD.ORG Sat Oct 29 00:00:24 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44FA7106566B for ; Sat, 29 Oct 2011 00:00:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 27DBF8FC12 for ; Sat, 29 Oct 2011 00:00:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9T00NK4041770 for ; Sat, 29 Oct 2011 00:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9T00NYs041769; Sat, 29 Oct 2011 00:00:23 GMT (envelope-from gnats) Date: Sat, 29 Oct 2011 00:00:23 GMT Message-Id: <201110290000.p9T00NYs041769@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: John Blazek Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Blazek List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 00:00:24 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: John Blazek To: Dimitry Andric Cc: bug-followup@FreeBSD.org,d@delphij.net Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 18:56:52 -0500 Awesome! At least I'm really not losing my mind! Well I might be anyway, but not in this case! Thank you! -john At 06:30 PM 10/28/2011, Dimitry Andric wrote: >Aha, now I see the cause of the problem. A similar case to yours was >actually reported in conf/156427: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=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 >r220958: > > http://svnweb.freebsd.org/base?view=revision&revision=220958 > >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. > > From owner-freebsd-rc@FreeBSD.ORG Sat Oct 29 00:10:15 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E52091065670 for ; Sat, 29 Oct 2011 00:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D48878FC14 for ; Sat, 29 Oct 2011 00:10:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9T0AFEL053881 for ; Sat, 29 Oct 2011 00:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9T0AFEf053880; Sat, 29 Oct 2011 00:10:15 GMT (envelope-from gnats) Date: Sat, 29 Oct 2011 00:10:15 GMT Message-Id: <201110290010.p9T0AFEf053880@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: John Blazek Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Blazek List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 00:10:16 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: John Blazek To: Dimitry Andric Cc: bug-followup@FreeBSD.org,d@delphij.net Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 19:05:22 -0500 Hello, As you predicted, the patch resolved the dual sshd startup: [root@kahlua]:[~]# sockstat | grep ssh root sshd 55696 2 tcp4 192.168.3.134:2220 192.168.3.142:1089 root sshd 55696 3 tcp4 192.168.3.134:2220 192.168.3.142:1089 root sshd 55696 4 tcp4 192.168.3.134:2220 192.168.3.142:1089 root sshd 8361 3 tcp6 *:22200 *:* root sshd 8361 4 tcp4 *:22200 *:* Thanks again. Sorry for making you find something that had already been fixed. I guess there is no good way to add that patch to the next 8.2-px ? -john ******************* Awesome! At least I'm really not losing my mind! Well I might be anyway, but not in this case! Thank you! -john At 06:30 PM 10/28/2011, Dimitry Andric wrote: >Aha, now I see the cause of the problem. A similar case to yours was >actually reported in conf/156427: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=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 >r220958: > > http://svnweb.freebsd.org/base?view=revision&revision=220958 > >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. > From owner-freebsd-rc@FreeBSD.ORG Sat Oct 29 13:32:09 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 292FE1065678 for ; Sat, 29 Oct 2011 13:32:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id E01AF8FC0A for ; Sat, 29 Oct 2011 13:32:05 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:89e1:b26d:b9ae:d0c1] (unknown [IPv6:2001:7b8:3a7:0:89e1:b26d:b9ae:d0c1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A65C05C37; Sat, 29 Oct 2011 15:32:04 +0200 (CEST) Message-ID: <4EAC0059.1030709@FreeBSD.org> Date: Sat, 29 Oct 2011 15:32:09 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111019 Thunderbird/8.0 MIME-Version: 1.0 To: John Blazek References: <201110290010.p9T0AFEf053880@freefall.freebsd.org> In-Reply-To: <201110290010.p9T0AFEf053880@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 13:32:09 -0000 On 2011-10-29 02:10, John Blazek wrote: > The following reply was made to PR conf/161710; it has been noted by GNATS. > > From: John Blazek > To: Dimitry Andric > Cc: bug-followup@FreeBSD.org,d@delphij.net > Subject: Re: conf/161710: SSHD starts on boot even if > sshd_enable="NO" in 8.2 > Date: Fri, 28 Oct 2011 19:05:22 -0500 > > Hello, > > As you predicted, the patch resolved the dual sshd startup: > > > [root@kahlua]:[~]# sockstat | grep ssh > root sshd 55696 2 tcp4 192.168.3.134:2220 192.168.3.142:1089 > root sshd 55696 3 tcp4 192.168.3.134:2220 192.168.3.142:1089 > root sshd 55696 4 tcp4 192.168.3.134:2220 192.168.3.142:1089 > root sshd 8361 3 tcp6 *:22200 *:* > root sshd 8361 4 tcp4 *:22200 *:* > > > Thanks again. > > Sorry for making you find something that had already been fixed. No problem, glad there is a reasonably simple solution. > I guess there is no good way to add that patch to the next 8.2-px ? As far as I know, only security problems get patched in the release versions. It will end up in 8.3-RELEASE eventually, though I have no idea when that is planned; the release engineering team is very busy on 9.0 at the moment. :) For now, you will just need to apply the fix locally.