From owner-freebsd-rc@FreeBSD.ORG Mon Dec 26 11:02:38 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 351FD16A41F for ; Mon, 26 Dec 2005 11:02:38 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2947F43D5F for ; Mon, 26 Dec 2005 11:02:29 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBQB2Rsj018197 for ; Mon, 26 Dec 2005 11:02:27 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBQB2QFm018191 for freebsd-rc@freebsd.org; Mon, 26 Dec 2005 11:02:26 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Dec 2005 11:02:26 GMT Message-Id: <200512261102.jBQB2QFm018191@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 26 Dec 2005 11:02:38 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/10] conf/77340 rc awk used in /etc/rc.d/nsswitch when not a 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/06/30] conf/68525 rc Loader's verbose boot mode has rc.d/local o [2004/11/11] conf/73834 rc Bad dependencies for /etc/rc.d/savecore o [2004/11/13] conf/73909 rc [patch] rc.d/sshd does not work with port o [2005/02/18] conf/77663 rc Suggestion: add /etc/rc.d/addnetswap afte o [2005/05/14] kern/81006 rc ipnat not working with tunnel interfaces o [2005/08/27] conf/85363 rc syntax error in /etc/rc.d/devfs o [2005/11/02] conf/88383 rc [PATCH]: etc/rc.d/ldconfig:does not prope o [2005/11/14] conf/88974 rc autoconfigured vlans confuse rc.d/netif 8 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue Dec 27 20:53:14 2005 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A1D16A41F; Tue, 27 Dec 2005 20:53:14 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F92843D72; Tue, 27 Dec 2005 20:53:13 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBRKrBOw060919; Tue, 27 Dec 2005 20:53:11 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBRKrBwW060915; Tue, 27 Dec 2005 20:53:11 GMT (envelope-from linimon) Date: Tue, 27 Dec 2005 20:53:11 GMT From: Mark Linimon Message-Id: <200512272053.jBRKrBwW060915@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup 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: Tue, 27 Dec 2005 20:53:14 -0000 Synopsis: [patch] 6.0 boot: name resolution broken for daemon startup Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Tue Dec 27 20:52:56 UTC 2005 Responsible-Changed-Why: Patch addresses a possible problem in rc. http://www.freebsd.org/cgi/query-pr.cgi?pr=90863 From owner-freebsd-rc@FreeBSD.ORG Tue Dec 27 22:30:19 2005 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67E4616A41F for ; Tue, 27 Dec 2005 22:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C56F443D64 for ; Tue, 27 Dec 2005 22:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBRMUIom065655 for ; Tue, 27 Dec 2005 22:30:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBRMUIYc065653; Tue, 27 Dec 2005 22:30:18 GMT (envelope-from gnats) Date: Tue, 27 Dec 2005 22:30:18 GMT Message-Id: <200512272230.jBRMUIYc065653@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: JoaoBR Cc: Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: JoaoBR 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: Tue, 27 Dec 2005 22:30:19 -0000 The following reply was made to PR conf/90863; it has been noted by GNATS. From: JoaoBR To: bug-followup@freebsd.org, wollman@xyz.csail.mit.edu Cc: Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup Date: Tue, 27 Dec 2005 20:29:05 -0200 I think that named is not starting first and so I guess the rc start order = is=20 wrong and not that named do not answer queries,=20 I reported similar here: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D86668 also I believe that this touches the same problem that the timeout is too=20 long, see this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dbin/62139 (even if this is apearently to ssh related the problem is the sshd dns reso= lve=20 timeout which is too long) In my opinion the rc order needs to be corrected and the resolv timeout nee= ds=20 to be shorter and a proper error messages on startup would help to understa= nd=20 the problem because hanging on starting sendmail . makes believe the problem is in sendmail configuration Jo=E3o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br From owner-freebsd-rc@FreeBSD.ORG Tue Dec 27 23:00:22 2005 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6BC616A41F for ; Tue, 27 Dec 2005 23:00:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11BF043D55 for ; Tue, 27 Dec 2005 23:00:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBRN0LWD067658 for ; Tue, 27 Dec 2005 23:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBRN0LjU067657; Tue, 27 Dec 2005 23:00:21 GMT (envelope-from gnats) Date: Tue, 27 Dec 2005 23:00:21 GMT Message-Id: <200512272300.jBRN0LjU067657@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Garrett Wollman Cc: Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Wollman 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: Tue, 27 Dec 2005 23:00:22 -0000 The following reply was made to PR conf/90863; it has been noted by GNATS. From: Garrett Wollman To: JoaoBR Cc: bug-followup@freebsd.org Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup Date: Tue, 27 Dec 2005 17:51:07 -0500 < said: > I think that named is not starting first and so I guess the rc start order is > wrong and not that named do not answer queries, No, on my system named definitely is started in the correct order: wollman@xyz(4)$ echo `rcorder *` | fold -s rcconf.sh dumpon initrandom geli gbde encswap ccd swap1 ramdisk early.sh fsck root mountcritlocal var cleanvar random adjkerntz atm1 hostname ipfilter ipnat ipfs kldxref sppp addswap sysctl serial pccard netif isdnd ppp-user ipfw nsswitch ip6addrctl atm2 pfsync pflog pf routing ip6fw network_ipv6 mroute6d route6d mrouted routed dhclient NETWORKING devd mountcritremote devfs ipmon ramdisk-own newsyslog syslogd savecore SERVERS named ntpdate rpcbind nisdomain [...] The problem seems to be related to the fact that the bge(4) network interface in this machine takes a long time bring the link up. When named starts, it attempts to validate the root zone cache before the network link comes up, forks, and returns SERVFAIL (?) to all requests until it is finally able to validate. Older versions of named did not daemonize until the root zone cache was validated. This would not be a problem (that's why a server should always have another server after itself in /etc/resolv.conf) except that the stub resolver considers any reply (even "no I can't do that now") to be authoritative. If named simply failed to respond to these queries, the resolver would fail over to the other server. -GAWollman From owner-freebsd-rc@FreeBSD.ORG Wed Dec 28 02:02:03 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C10BF16A41F for ; Wed, 28 Dec 2005 02:02:03 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id E8AFF43D53 for ; Wed, 28 Dec 2005 02:02:02 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 37780 invoked by uid 399); 28 Dec 2005 02:02:02 -0000 Received: from localhost (HELO ?192.168.0.5?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 28 Dec 2005 02:02:02 -0000 Message-ID: <43B1F218.2080408@FreeBSD.org> Date: Tue, 27 Dec 2005 18:02:00 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Florent Thoumie References: <1134927080.744.14.camel@cream.xbsd.org> In-Reply-To: <1134927080.744.14.camel@cream.xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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, 28 Dec 2005 02:02:03 -0000 Florent Thoumie wrote: > Since we have some ports that want to ldconfig directories early > in the boot process (actually, early in localpkg sequence), I > think it would be a good idee to support > ${PREFIX}/etc/ld.so.conf.d/ directories (or whatever the name). I'd rather keep it out of etc/ for fear that users might think it's a knob they can twiddle. I would suggest PREFIX/libdata (note, pkgconfig stuff is already there, so this may not be the best choice, but it fits with precedent). Whatever name you choose, it will need an entry in /etc/mtree/BSD.local.dist. > Here's what I was thinking about (see attached patch). > > This way, I can imagine a USE_LDCONFIG variable containing > directories and bsd.port.mk would just : > > .if defined(USE_LDCONFIG) > echo ${USE_LDCONFIG} > ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} > .endif I would use touch here, but I won't quibble. > [...] instead of installing 000.${UNIQUENAME}.sh in > ${PREFIX}/etc/rc.d. > > I guess it should be ok since /etc/rc.d/ldconfig is launched > after /etc/rc.d/mountcritremote. We can assume that local > directories will be available (by default local_ldconfig=""). > > Note: That's a simple patch to src/etc/rc.d/ldconfig, I'll work > on a more polished one (with updated configuration). > > > > ------------------------------------------------------------------------ > > Index: rc.d/ldconfig > =================================================================== > RCS file: /home/ncvs/src/etc/rc.d/ldconfig,v > retrieving revision 1.14 > diff -u -r1.14 ldconfig > --- rc.d/ldconfig 16 Jan 2005 08:34:30 -0000 1.14 > +++ rc.d/ldconfig 18 Dec 2005 17:18:28 -0000 > @@ -22,6 +22,11 @@ > checkyesno ldconfig_insecure && _ins="-i" > if [ -x "${ldconfig_command}" ]; then > _LDC="/lib /usr/lib" > + for i in ${local_ldconfig}; do Please make the variable name ldconfig_local_d (or _dir if you prefer, just try to keep it short), as the convention is that all variables relative to a given rc.d script need to start with the name of the script. I assume from what you wrote above that you are going to do the /etc/defaults/rc.conf and rc.conf(5) updates as well? Thanks for this creative thinking, I think that this change will go a long way towards making things easier for our users. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed Dec 28 02:10:50 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C45E16A41F; Wed, 28 Dec 2005 02:10:50 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9850643D46; Wed, 28 Dec 2005 02:10:49 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 5774911821; Wed, 28 Dec 2005 03:10:48 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65662-07; Wed, 28 Dec 2005 03:10:30 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 3977C115A6; Wed, 28 Dec 2005 03:10:29 +0100 (CET) From: Florent Thoumie To: Doug Barton Date: Wed, 28 Dec 2005 03:10:18 +0100 User-Agent: KMail/1.8.2 References: <1134927080.744.14.camel@cream.xbsd.org> <43B1F218.2080408@FreeBSD.org> In-Reply-To: <43B1F218.2080408@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1791993.EoJgDGEWOS"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512280310.25988.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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, 28 Dec 2005 02:10:50 -0000 --nextPart1791993.EoJgDGEWOS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 28 December 2005 03:02, Doug Barton wrote: > Florent Thoumie wrote: > > Since we have some ports that want to ldconfig directories early > > in the boot process (actually, early in localpkg sequence), I > > think it would be a good idee to support > > ${PREFIX}/etc/ld.so.conf.d/ directories (or whatever the name). > > I'd rather keep it out of etc/ for fear that users might think it's a knob > they can twiddle. I would suggest PREFIX/libdata (note, pkgconfig stuff is > already there, so this may not be the best choice, but it fits with > precedent). Whatever name you choose, it will need an entry in > /etc/mtree/BSD.local.dist. I don't much care about where it's stored, I figured out that etc/ was a g= ood=20 candidate because /etc/ had already ld.so.conf but libdata is fine with me. Note that I modified BSD.local.dist in latest version of the patch. > > Here's what I was thinking about (see attached patch). > > > > This way, I can imagine a USE_LDCONFIG variable containing > > directories and bsd.port.mk would just : > > > > .if defined(USE_LDCONFIG) > > echo ${USE_LDCONFIG} > ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} > > .endif > > I would use touch here, but I won't quibble. Not sure how you could do the same thing with only touch. > > [...] instead of installing 000.${UNIQUENAME}.sh in > > ${PREFIX}/etc/rc.d. > > > > I guess it should be ok since /etc/rc.d/ldconfig is launched > > after /etc/rc.d/mountcritremote. We can assume that local > > directories will be available (by default local_ldconfig=3D""). > > > > Note: That's a simple patch to src/etc/rc.d/ldconfig, I'll work > > on a more polished one (with updated configuration). > > > > > > > > ------------------------------------------------------------------------ > > > > Index: rc.d/ldconfig > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > RCS file: /home/ncvs/src/etc/rc.d/ldconfig,v > > retrieving revision 1.14 > > diff -u -r1.14 ldconfig > > --- rc.d/ldconfig 16 Jan 2005 08:34:30 -0000 1.14 > > +++ rc.d/ldconfig 18 Dec 2005 17:18:28 -0000 > > @@ -22,6 +22,11 @@ > > checkyesno ldconfig_insecure && _ins=3D"-i" > > if [ -x "${ldconfig_command}" ]; then > > _LDC=3D"/lib /usr/lib" > > + for i in ${local_ldconfig}; do > > Please make the variable name ldconfig_local_d (or _dir if you prefer, ju= st > try to keep it short), as the convention is that all variables relative to > a given rc.d script need to start with the name of the script. I assume > from what you wrote above that you are going to do the > /etc/defaults/rc.conf and rc.conf(5) updates as well? Already done in the latest version of the patch, but these changes are ok = for=20 me. Since it's going to be set by default to a sensible value, I guess the= =20 name doesn't matter. > Thanks for this creative thinking, I think that this change will go a long > way towards making things easier for our users. That's the point ;) =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart1791993.EoJgDGEWOS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDsfQRMxEkbVFH3PQRAv03AJ9FbEfz34GAOuFS8WKaXwGwxdGt6QCfXIip drZRxMcW0gST5JbR7y0+k04= =AaTR -----END PGP SIGNATURE----- --nextPart1791993.EoJgDGEWOS-- From owner-freebsd-rc@FreeBSD.ORG Wed Dec 28 03:16:41 2005 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8250616A420; Wed, 28 Dec 2005 03:16:41 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 314E443D5C; Wed, 28 Dec 2005 03:16:41 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBS3Gf9H082063; Wed, 28 Dec 2005 03:16:41 GMT (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBS3Gf3M082059; Wed, 28 Dec 2005 03:16:41 GMT (envelope-from keramida) Date: Wed, 28 Dec 2005 03:16:41 GMT From: Giorgos Keramidas Message-Id: <200512280316.jBS3Gf3M082059@freefall.freebsd.org> To: keramida@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/90893: stock ftpd rcNG script 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, 28 Dec 2005 03:16:41 -0000 Synopsis: stock ftpd rcNG script Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: keramida Responsible-Changed-When: Wed Dec 28 03:15:52 UTC 2005 Responsible-Changed-Why: Thanks! This works fine here. I'm assigning it to freebsd-rc so that people responsible for our rc.d scripts can pick it up and commit it :) http://www.freebsd.org/cgi/query-pr.cgi?pr=90893 From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 00:36:52 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 255F516A41F for ; Thu, 29 Dec 2005 00:36:52 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 921B743D7E for ; Thu, 29 Dec 2005 00:36:47 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 67566 invoked by uid 399); 29 Dec 2005 00:36:45 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 29 Dec 2005 00:36:45 -0000 Message-ID: <43B32F9C.9080809@FreeBSD.org> Date: Wed, 28 Dec 2005 16:36:44 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Florent Thoumie References: <1134927080.744.14.camel@cream.xbsd.org> <43B1F218.2080408@FreeBSD.org> <200512280310.25988.flz@xbsd.org> In-Reply-To: <200512280310.25988.flz@xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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: Thu, 29 Dec 2005 00:36:52 -0000 Florent Thoumie wrote: > I don't much care about where it's stored, I figured out that etc/ was a > good candidate because /etc/ had already ld.so.conf but libdata is fine > with me. Ok, let's go with that unless someone else has a better idea. > Note that I modified BSD.local.dist in latest version of the patch. I did after I finished reading the thread. :) Good catch. >>> Here's what I was thinking about (see attached patch). >>> >>> This way, I can imagine a USE_LDCONFIG variable containing >>> directories and bsd.port.mk would just : >>> >>> .if defined(USE_LDCONFIG) echo ${USE_LDCONFIG} > >>> ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} .endif >> I would use touch here, but I won't quibble. > > Not sure how you could do the same thing with only touch. Ok, I think I'm confused about one part of the patch or another then. It seems from your rc.d/ldconfig patch that all you are looking at are the names of the files in the ldconfig_local_d directories, but it occurs to me now that just the names won't really help, you actually need to store the paths to feed to ldconfig somewhere, which I presume is what you were going to include in the USE_LDCONFIG variable. Am I right so far? If so, then I don't understand how your patch to rc.d/ldconfig is going to work, but I may be missing something. :) Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 01:22:35 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0638E16A41F; Thu, 29 Dec 2005 01:22:35 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D5A43D5E; Thu, 29 Dec 2005 01:22:34 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 6A6A811783; Thu, 29 Dec 2005 02:22:32 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 52005-07; Thu, 29 Dec 2005 02:22:25 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 17F54115A6; Thu, 29 Dec 2005 02:22:24 +0100 (CET) From: Florent Thoumie To: Doug Barton Date: Thu, 29 Dec 2005 02:22:10 +0100 User-Agent: KMail/1.8.2 References: <1134927080.744.14.camel@cream.xbsd.org> <200512280310.25988.flz@xbsd.org> <43B32F9C.9080809@FreeBSD.org> In-Reply-To: <43B32F9C.9080809@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1367964.xMXv7SaWjU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512290222.16584.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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: Thu, 29 Dec 2005 01:22:35 -0000 --nextPart1367964.xMXv7SaWjU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 29 December 2005 01:36, Doug Barton wrote: > Florent Thoumie wrote: > > I don't much care about where it's stored, I figured out that etc/ was a > > good candidate because /etc/ had already ld.so.conf but libdata is fine > > with me. > > Ok, let's go with that unless someone else has a better idea. > > > Note that I modified BSD.local.dist in latest version of the patch. > > I did after I finished reading the thread. :) Good catch. > > >>> Here's what I was thinking about (see attached patch). > >>> > >>> This way, I can imagine a USE_LDCONFIG variable containing > >>> directories and bsd.port.mk would just : > >>> > >>> .if defined(USE_LDCONFIG) echo ${USE_LDCONFIG} > > >>> ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} .endif > >> > >> I would use touch here, but I won't quibble. > > > > Not sure how you could do the same thing with only touch. > > Ok, I think I'm confused about one part of the patch or another then. It > seems from your rc.d/ldconfig patch that all you are looking at are the > names of the files in the ldconfig_local_d directories, but it occurs to = me > now that just the names won't really help, you actually need to store the > paths to feed to ldconfig somewhere, which I presume is what you were goi= ng > to include in the USE_LDCONFIG variable. Am I right so far? If so, then I > don't understand how your patch to rc.d/ldconfig is going to work, but I > may be missing something. :) Hum, I'm actually using paths stored in files located in ld.so.conf.d/=20 directories. For example, you could have : # cat /usr/local/libdata/ld.so.conf.d/compat4x /usr/local/lib/compat # =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart1367964.xMXv7SaWjU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDszpIMxEkbVFH3PQRAjbTAJ9qGhpEYhlJZLGQhFoHou/cVQk3EACfS4Ja 5UPkm7md5q2cwvgvqYkJs2M= =BDtg -----END PGP SIGNATURE----- --nextPart1367964.xMXv7SaWjU-- From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 06:46:00 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9352316A41F for ; Thu, 29 Dec 2005 06:46:00 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id DD3E843D48 for ; Thu, 29 Dec 2005 06:45:59 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 1140 invoked by uid 399); 29 Dec 2005 06:45:59 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 29 Dec 2005 06:45:59 -0000 Message-ID: <43B38626.3050106@FreeBSD.org> Date: Wed, 28 Dec 2005 22:45:58 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Florent Thoumie References: <1134927080.744.14.camel@cream.xbsd.org> <200512280310.25988.flz@xbsd.org> <43B32F9C.9080809@FreeBSD.org> <200512290222.16584.flz@xbsd.org> In-Reply-To: <200512290222.16584.flz@xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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: Thu, 29 Dec 2005 06:46:00 -0000 Florent Thoumie wrote: > Hum, I'm actually using paths stored in files located in ld.so.conf.d/ > directories. > > For example, you could have : > > # cat /usr/local/libdata/ld.so.conf.d/compat4x > /usr/local/lib/compat Ok, I think I'll understand this better when I see a complete example implementation. Sorry for being so dense. :) Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 12:31:17 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E71116A41F; Thu, 29 Dec 2005 12:31:17 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id D699443D49; Thu, 29 Dec 2005 12:31:15 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id C71AE1141F; Thu, 29 Dec 2005 13:31:14 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64565-03; Thu, 29 Dec 2005 13:31:07 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 38E64115AF; Thu, 29 Dec 2005 13:31:07 +0100 (CET) From: Florent Thoumie To: Doug Barton Date: Thu, 29 Dec 2005 13:30:54 +0100 User-Agent: KMail/1.8.2 References: <1134927080.744.14.camel@cream.xbsd.org> <200512290222.16584.flz@xbsd.org> <43B38626.3050106@FreeBSD.org> In-Reply-To: <43B38626.3050106@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2042110.iTMZQGQ3yR"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512291331.00183.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change 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: Thu, 29 Dec 2005 12:31:17 -0000 --nextPart2042110.iTMZQGQ3yR Content-Type: multipart/mixed; boundary="Boundary-01=_/b9sDl/VwBcUtf+" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_/b9sDl/VwBcUtf+ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 29 December 2005 07:45, Doug Barton wrote: > Florent Thoumie wrote: > > Hum, I'm actually using paths stored in files located in ld.so.conf.d/ > > directories. > > > > For example, you could have : > > > > # cat /usr/local/libdata/ld.so.conf.d/compat4x > > /usr/local/lib/compat > > Ok, I think I'll understand this better when I see a complete example > implementation. Sorry for being so dense. :) No problem, here is the new patch. I'm working on the ports part right now. You'll notice that I've turned my `ls ${i}` into `find ${i} -type f` which= =20 does the right thing. Also, I've had a look at the scripts your compatibli= ty=20 ports are installing and since there's a special handling on amd64, I've=20 added some lines to rc.d/ldconfig. I haven't found a way to do what I want= ed=20 without duplicating ldconfig_local_dirs and ld.so.conf.d directories. Mayb= e=20 you'll be more creative than I am. =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --Boundary-01=_/b9sDl/VwBcUtf+-- --nextPart2042110.iTMZQGQ3yR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDs9cEMxEkbVFH3PQRAj9IAJ9ZtmThJ0LDJCsx1n0YutH6mWmFbwCdH35/ EFuuQqcqltCR42J5zk4gED8= =8n86 -----END PGP SIGNATURE----- --nextPart2042110.iTMZQGQ3yR-- From owner-freebsd-rc@FreeBSD.ORG Thu Dec 29 23:33:00 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 427F816A41F; Thu, 29 Dec 2005 23:33:00 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9382443D55; Thu, 29 Dec 2005 23:32:59 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 4CAF8117E0; Fri, 30 Dec 2005 00:32:58 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72373-01; Fri, 30 Dec 2005 00:32:50 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id C9448114A7; Fri, 30 Dec 2005 00:32:49 +0100 (CET) From: Florent Thoumie To: freebsd-rc@freebsd.org Date: Fri, 30 Dec 2005 00:32:38 +0100 User-Agent: KMail/1.8.2 References: <1134927080.744.14.camel@cream.xbsd.org> <43B38626.3050106@FreeBSD.org> <200512291331.00183.flz@xbsd.org> In-Reply-To: <200512291331.00183.flz@xbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1350620.7gvHN0hVI9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512300032.43923.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: Subject: Re: rc.d/ldconfig change 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: Thu, 29 Dec 2005 23:33:00 -0000 --nextPart1350620.7gvHN0hVI9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 29 December 2005 13:30, Florent Thoumie wrote: > On Thursday 29 December 2005 07:45, Doug Barton wrote: > > Florent Thoumie wrote: > > > Hum, I'm actually using paths stored in files located in ld.so.conf.= d/ > > > directories. > > > > > > For example, you could have : > > > > > > # cat /usr/local/libdata/ld.so.conf.d/compat4x > > > /usr/local/lib/compat > > > > Ok, I think I'll understand this better when I see a complete example > > implementation. Sorry for being so dense. :) > > No problem, here is the new patch. I'm working on the ports part right > now. > > You'll notice that I've turned my `ls ${i}` into `find ${i} -type f` whi= ch > does the right thing. Also, I've had a look at the scripts your > compatiblity ports are installing and since there's a special handling on > amd64, I've added some lines to rc.d/ldconfig. I haven't found a way to do > what I wanted without duplicating ldconfig_local_dirs and ld.so.conf.d > directories. Maybe you'll be more creative than I am. I think I forgot the most important thing, attaching the patch. I've put it here : http://people.freebsd.org/~flz/local/ldconfig.diff I've changed libdata/ld.so.conf.d/ to libdata/ldconfig. I guess it's ok no= w. =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart1350620.7gvHN0hVI9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDtHIbMxEkbVFH3PQRAssbAJ4n86gidpRUZCX6P2/CG0hzCq8rCgCeMb4M 456txOWUuP5ItU1jT2RM3n0= =bpyc -----END PGP SIGNATURE----- --nextPart1350620.7gvHN0hVI9-- From owner-freebsd-rc@FreeBSD.ORG Sat Dec 31 01:58:12 2005 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B76EC16A422; Sat, 31 Dec 2005 01:58:12 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BF043D66; Sat, 31 Dec 2005 01:57:57 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (dougb@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBV1vuxd033693; Sat, 31 Dec 2005 01:57:56 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBV1vuCf033689; Sat, 31 Dec 2005 01:57:56 GMT (envelope-from dougb) Date: Sat, 31 Dec 2005 01:57:56 GMT From: Doug Barton Message-Id: <200512310157.jBV1vuCf033689@freefall.freebsd.org> To: wollman@xyz.csail.mit.edu, dougb@FreeBSD.org, freebsd-rc@FreeBSD.org, dougb@FreeBSD.org Cc: Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup 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, 31 Dec 2005 01:58:12 -0000 Synopsis: [patch] 6.0 boot: name resolution broken for daemon startup State-Changed-From-To: open->feedback State-Changed-By: dougb State-Changed-When: Sat Dec 31 01:50:46 UTC 2005 State-Changed-Why: This is an interesting problem, and I have several responses. :) First, if you're sure that the problem is with the bge interface, I would prefer to see the problem fixed generically there, rather than in rc.d/named. However, I can see some value for having some sort of watchdog timer, similar to how it's done in /etc/rc.shutdown, that insures named is working, or barks loudly if it's not. I will give some thought as to how to make that a more generic interface so that not just rc.shutdown and named can use it. Also, if we do this I think it should be behind a knob that is off by default. As for the boot order of named, Garrett is right, it starts as soon as it's possible for it to start. If Greg wants to change rc.d/sendmail to REQUIRE: named, that's up to him. Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Sat Dec 31 01:50:46 UTC 2005 Responsible-Changed-Why: I will take responsibility for looking at the issue of a more generic watchdog timer that boot scripts can use. http://www.freebsd.org/cgi/query-pr.cgi?pr=90863 From owner-freebsd-rc@FreeBSD.ORG Sat Dec 31 02:22:47 2005 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80FB616A41F; Sat, 31 Dec 2005 02:22:47 +0000 (GMT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D56543D45; Sat, 31 Dec 2005 02:22:46 +0000 (GMT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (localhost.csail.mit.edu [127.0.0.1]) by khavrinen.csail.mit.edu (8.13.1/8.13.4) with ESMTP id jBV2MixF084071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.csail.mit.edu issuer=Client+20CA); Fri, 30 Dec 2005 21:22:44 -0500 (EST) (envelope-from wollman@khavrinen.csail.mit.edu) Received: (from wollman@localhost) by khavrinen.csail.mit.edu (8.13.1/8.13.4/Submit) id jBV2Mi7X084068; Fri, 30 Dec 2005 21:22:44 -0500 (EST) (envelope-from wollman) From: Garrett Wollman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17333.60276.293518.585286@khavrinen.csail.mit.edu> Date: Fri, 30 Dec 2005 21:22:44 -0500 To: Doug Barton In-Reply-To: <200512310157.jBV1vuCf033689@freefall.freebsd.org> References: <200512310157.jBV1vuCf033689@freefall.freebsd.org> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (khavrinen.csail.mit.edu [127.0.0.1]); Fri, 30 Dec 2005 21:22:45 -0500 (EST) X-Spam-Status: No, score=0.6 required=5.0 tests=J_CHICKENPOX_71, SPF_HELO_PASS, SPF_PASS version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on khavrinen.csail.mit.edu Cc: freebsd-rc@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: conf/90863: [patch] 6.0 boot: name resolution broken for daemon startup 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, 31 Dec 2005 02:22:47 -0000 < said: > First, if you're sure that the problem is with the bge interface, > I would prefer to see the problem fixed generically there, rather > than in rc.d/named. It's not a problem with bge(4), it's a general problem with network interfaces that take a long time to bring the link up after it is initialized. (I expect to have the same problem with ti(4) on a machine I'm upgrading right now.) In this particular case I'm willing to wait forever, since the machine can't do anything useful until it has network, but that would be unacceptable for the general case. Ordinary workstations using DHCP don't see this, because you obviously can't get a lease until you can communicate with the DHCP server. What I'd like would be to have a "don't fork until you're really ready" option for named (or even better, for that to be restored as the default behavior); servers without a local resolver don't have this problem, because the stub resolver will retry requests that don't elicit a response. I think that's a superior solution to anything that requires explicit configuration on the part of the sysadmin. > As for the boot order of named, Garrett is right, it starts as > soon as it's possible for it to start. If Greg wants to change > rc.d/sendmail to REQUIRE: named, that's up to him. sendmail already REQUIRE:s LOGIN, so there's no issue there. -GAWollman