From owner-freebsd-rc@FreeBSD.ORG Mon May 28 11:08:41 2007 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50F5316A4EF for ; Mon, 28 May 2007 11:08:41 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 23F1313C45B for ; Mon, 28 May 2007 11:08:41 +0000 (UTC) (envelope-from owner-bugmaster@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 l4SB8etH068604 for ; Mon, 28 May 2007 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4SB8d3M068600 for freebsd-rc@FreeBSD.org; Mon, 28 May 2007 11:08:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 May 2007 11:08:39 GMT Message-Id: <200705281108.l4SB8d3M068600@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 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, 28 May 2007 11:08:41 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/98758 rc [jail] [patch] Templatize 'jail_fstab' in /etc/rc.d/ja o conf/98846 rc [patch] Templatize 'jail_rootdir' in /etc/rc.d/jail o conf/105689 rc syslogd starts too late at boot o conf/107155 rc [ppp] /etc/rc.d/ppp-user does not bring up pppoe at bo o conf/107364 rc pf fails to start on bootup after system update from F 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/45226 rc Fix for rc.network, ppp-user annoyance o conf/48870 rc [PATCH] rc.network: allow to cancel interface status d o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/73677 rc [patch] add support for powernow states to power_profi o conf/74817 rc [patch] network.subr: fixed automatic configuration of o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/79196 rc [PATCH] configurable dummynet loading from /etc/rc.co o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/85363 rc syntax error in /etc/rc.d/devfs o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o conf/88913 rc [patch] wrapper support for rc.subr o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/89870 rc [patch] feature request to make netif verbose rc.conf o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/95162 rc [patch] Missing feature in rc.subr o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/102913 rc [jail] /etc/rc.d/named killall in jailed OS o conf/103486 rc [rc.d][patch][chroot named] rc.d/jail: mount fstab aft o conf/103489 rc [rc.d] [patch] named_chroot_autoupdate doesn't work in o conf/103976 rc rc.d/named restart failure o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/105145 rc [PATCH] add redial function to rc.d/ppp o conf/105568 rc [patch] Add more flexibility to rc.conf, to choose "_e o conf/106009 rc [patch] Fix pppoed startup script to process multiply 28 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue May 29 14:38:32 2007 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F72016A421 for ; Tue, 29 May 2007 14:38:32 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 4D6F313C489 for ; Tue, 29 May 2007 14:38:32 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1Ht2UP-0009Ko-9L for rc@freebsd.org; Tue, 29 May 2007 17:15:57 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: rc@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 29 May 2007 17:15:57 +0300 From: Danny Braniss Message-ID: Cc: Subject: rcorder blues 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, 29 May 2007 14:38:32 -0000 hi all, Under 6.2 I set early_late_divider to amd, and since local_rc points to an 'automounted directory', rcorder will include the rc-files from my shared-local/etc/rc.d. Since 7.0 this 'trick' no longer works, some rc-files, that in the first run appeared after amd/early_late_divider, in the second run appear before amd, and so never get executed. The quick and dirty solution, was for rc.initdiskless to copy the 'shared/local_rc/' to /etc/rc.d (thanks to unionfs:-), and so all was 'almost' ok. Is there some tool to 'debug' rcorder? ie. list the reason for the order? thanks, danny From owner-freebsd-rc@FreeBSD.ORG Tue May 29 20:50:43 2007 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6402016A41F for ; Tue, 29 May 2007 20:50:43 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (mx1.ethionet.et [213.55.64.53]) by mx1.freebsd.org (Postfix) with ESMTP id CB87A13C44B for ; Tue, 29 May 2007 20:50:42 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (localhost [127.0.0.1]) by localhost.ethionet.et (Postfix) with ESMTP id D351750D1; Tue, 29 May 2007 23:14:35 +0300 (EAT) Received: from rogue.navcom.lan (unknown [213.55.68.128])by mx1.ethionet.et (Postfix) with SMTP id A911250E3; Tue, 29 May 2007 23:14:34 +0300 (EAT) Received: by rogue.navcom.lan (Postfix, from userid 1001)id 0B3FF1501; Tue, 29 May 2007 23:23:47 +0300 (EAT) Date: Tue, 29 May 2007 23:23:45 +0300 From: Mike Makonnen To: Danny Braniss Message-ID: <20070529202345.GB1919@rogue.navcom.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD/7.0-CURRENT (i386) X-imss-version: 2.46 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:2 S:3 R:2 (0.5000 0.5000) Cc: rc@freebsd.org Subject: Re: rcorder blues 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, 29 May 2007 20:50:43 -0000 On Tue, May 29, 2007 at 05:15:57PM +0300, Danny Braniss wrote: > hi all, > Under 6.2 I set early_late_divider to amd, and since local_rc > points to an 'automounted directory', rcorder will include the rc-files > from my shared-local/etc/rc.d. > Since 7.0 this 'trick' no longer works, some rc-files, that > in the first run appeared after amd/early_late_divider, in the second > run appear before amd, and so never get executed. > The quick and dirty solution, was for rc.initdiskless to copy > the 'shared/local_rc/' to /etc/rc.d (thanks to unionfs:-), and so all > was 'almost' ok. Which scripts are changing order, and what ports scripts are involved? Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org From owner-freebsd-rc@FreeBSD.ORG Tue May 29 23:39:30 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19C5816A469 for ; Tue, 29 May 2007 23:39:30 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id C88A213C455 for ; Tue, 29 May 2007 23:39:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 25157 invoked by uid 399); 29 May 2007 23:39:29 -0000 Received: from localhost (HELO ?192.168.0.5?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 29 May 2007 23:39:29 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <465CB9AA.4010700@FreeBSD.org> Date: Tue, 29 May 2007 16:39:22 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rcorder blues 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, 29 May 2007 23:39:30 -0000 Danny Braniss wrote: > hi all, > Under 6.2 I set early_late_divider to amd, and since local_rc > points to an 'automounted directory', rcorder will include the rc-files > from my shared-local/etc/rc.d. In theory there should be nothing wrong with doing this, however amd happens pretty late in the default rcorder, so it is pretty likely that something is going to get rearranged when you start including your local files. > Since 7.0 this 'trick' no longer works, some rc-files, that > in the first run appeared after amd/early_late_divider, in the second > run appear before amd, and so never get executed. Voila. > The quick and dirty solution, was for rc.initdiskless to copy > the 'shared/local_rc/' to /etc/rc.d (thanks to unionfs:-), and so all > was 'almost' ok. Yeah, that's not a good idea. :) > Is there some tool to 'debug' rcorder? ie. list the reason > for the order? Those are two different questions. :) To debug the issue you are describing I use the patch at http://people.freebsd.org/~dougb/rc-debug.diff. To understand why rcorder does things the way it does, read the man page ... then you pretty much have to go through the PROVIDE, REQUIRE, and BEFORE lines in the rc.d scripts you have to figure out how you can make things more deterministic. Please note that (at least on my system) there is a "mostly harmless" bug in our current ordering that causes the resolv script to be ordered very late without including /usr/local stuff, and first after it is included, which means it is never run on my system. If you see that issue, don't worry about it, it's on the list of things that should be fixed someday, but isn't a priority. hth, Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed May 30 06:17:33 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9ED7916A400; Wed, 30 May 2007 06:17:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5E013C468; Wed, 30 May 2007 06:17:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HtH7y-000Jlw-PE; Wed, 30 May 2007 08:53:46 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Doug Barton In-reply-to: Your message of Tue, 29 May 2007 16:39:22 -0700 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 May 2007 08:53:46 +0300 From: Danny Braniss Message-ID: Cc: freebsd-rc@freebsd.org Subject: Re: rcorder blues 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, 30 May 2007 06:17:33 -0000 > > hi all, > > Under 6.2 I set early_late_divider to amd, and since local_rc > > points to an 'automounted directory', rcorder will include the rc-files > > from my shared-local/etc/rc.d. > > In theory there should be nothing wrong with doing this, however amd > happens pretty late in the default rcorder, so it is pretty likely > that something is going to get rearranged when you start including > your local files. > by removing some dependencies in amd, i managed to get it to run earlier - but was not easy, it does depend on many things. > > Since 7.0 this 'trick' no longer works, some rc-files, that > > in the first run appeared after amd/early_late_divider, in the second > > run appear before amd, and so never get executed. > > Voila. > > > The quick and dirty solution, was for rc.initdiskless to copy > > the 'shared/local_rc/' to /etc/rc.d (thanks to unionfs:-), and so all > > was 'almost' ok. > > Yeah, that's not a good idea. :) > > > Is there some tool to 'debug' rcorder? ie. list the reason > > for the order? > > Those are two different questions. :) To debug the issue you are > describing I use the patch at > http://people.freebsd.org/~dougb/rc-debug.diff. To understand why > rcorder does things the way it does, read the man page ... then you > pretty much have to go through the PROVIDE, REQUIRE, and BEFORE lines > in the rc.d scripts you have to figure out how you can make things > more deterministic. I don't think it's realistic to expect that by setting/modifying the PROVIDE, REQUIRE, and BEFORE list, one can forsee the result :-) it's more a wish, and rcoder decides :-) > > Please note that (at least on my system) there is a "mostly harmless" > bug in our current ordering that causes the resolv script to be > ordered very late without including /usr/local stuff, and first after > it is included, which means it is never run on my system. If you see > that issue, don't worry about it, it's on the list of things that > should be fixed someday, but isn't a priority. it's not harmless for me, since amd needs hostname :-( I added resolv to NETWORK's REQUIRE:. BTW, I also added to abi PROVIDE: linux, this way i can have some linux depend on it. danny From owner-freebsd-rc@FreeBSD.ORG Wed May 30 07:28:09 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD86316A473 for ; Wed, 30 May 2007 07:28:09 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 6376513C469 for ; Wed, 30 May 2007 07:28:09 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 22990 invoked by uid 399); 30 May 2007 07:28:06 -0000 Received: from localhost (HELO ?192.168.0.5?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 30 May 2007 07:28:06 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <465D2780.206@FreeBSD.org> Date: Wed, 30 May 2007 00:28:00 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rcorder blues 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, 30 May 2007 07:28:09 -0000 Danny Braniss wrote: >>> hi all, >>> Under 6.2 I set early_late_divider to amd, and since local_rc >>> points to an 'automounted directory', rcorder will include the rc-files >>> from my shared-local/etc/rc.d. >> In theory there should be nothing wrong with doing this, however amd >> happens pretty late in the default rcorder, so it is pretty likely >> that something is going to get rearranged when you start including >> your local files. >> > by removing some dependencies in amd, i managed to get it to run > earlier - but was not easy, it does depend on many things. Yeah, I took a quick look, and decided there weren't any quick fixes. > I don't think it's realistic to expect that by setting/modifying the > PROVIDE, REQUIRE, and BEFORE list, one can forsee the result :-) > it's more a wish, and rcoder decides :-) Unless you create a circular dependency (which it will complain about) it actually does what you tell it to, the trick is to tell it to do the right thing. :) >> Please note that (at least on my system) there is a "mostly harmless" >> bug in our current ordering that causes the resolv script to be >> ordered very late without including /usr/local stuff, and first after >> it is included, which means it is never run on my system. If you see >> that issue, don't worry about it, it's on the list of things that >> should be fixed someday, but isn't a priority. > > it's not harmless for me, since amd needs hostname :-( > I added resolv to NETWORK's REQUIRE:. That's probably a good idea, I'll do some more testing on that and commit the result if it works. > BTW, I also added to abi PROVIDE: linux, this way i can have > some linux depend on it. I'll let someone more knowledgeable comment on that one. The abi script is kind of hairy. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed May 30 08:11:22 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61F7116A46D; Wed, 30 May 2007 08:11:22 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 19A4813C447; Wed, 30 May 2007 08:11:21 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HtJH6-000PUn-Mo; Wed, 30 May 2007 11:11:20 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Doug Barton In-reply-to: Your message of Wed, 30 May 2007 00:28:00 -0700 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 May 2007 11:11:20 +0300 From: Danny Braniss Message-ID: Cc: freebsd-rc@freebsd.org Subject: Re: rcorder blues 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, 30 May 2007 08:11:22 -0000 > Danny Braniss wrote: > >>> hi all, > >>> Under 6.2 I set early_late_divider to amd, and since local_rc > >>> points to an 'automounted directory', rcorder will include the rc-files > >>> from my shared-local/etc/rc.d. > >> In theory there should be nothing wrong with doing this, however amd > >> happens pretty late in the default rcorder, so it is pretty likely > >> that something is going to get rearranged when you start including > >> your local files. > >> > > by removing some dependencies in amd, i managed to get it to run > > earlier - but was not easy, it does depend on many things. > > Yeah, I took a quick look, and decided there weren't any quick fixes. > > > I don't think it's realistic to expect that by setting/modifying the > > PROVIDE, REQUIRE, and BEFORE list, one can forsee the result :-) > > it's more a wish, and rcoder decides :-) > > Unless you create a circular dependency (which it will complain about) > it actually does what you tell it to, the trick is to tell it to do > the right thing. :) > it's the untangling of the circular dependencies where the mastery recides :-) > >> Please note that (at least on my system) there is a "mostly harmless" > >> bug in our current ordering that causes the resolv script to be > >> ordered very late without including /usr/local stuff, and first after > >> it is included, which means it is never run on my system. If you see > >> that issue, don't worry about it, it's on the list of things that > >> should be fixed someday, but isn't a priority. > > > > it's not harmless for me, since amd needs hostname :-( > > I added resolv to NETWORK's REQUIRE:. > > That's probably a good idea, I'll do some more testing on that and > commit the result if it works. > > > BTW, I also added to abi PROVIDE: linux, this way i can have > > some linux depend on it. > > I'll let someone more knowledgeable comment on that one. The abi > script is kind of hairy. too little testosteron? just ran a quick check, why are there so many files depend on cleanvar? why, for example mixer need it?, and if most rc's need /var/run/$progname.pid can't it be placed in some RC_FILE? (SERVERS/DAEMONS) anyways, rc-ng is far better than the monolithic rc, and inittab. danny > > Doug > > -- > > This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed May 30 08:22:32 2007 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60B1C16A400 for ; Wed, 30 May 2007 08:22:32 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 17CD413C455 for ; Wed, 30 May 2007 08:22:32 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HtJRu-00009u-J5; Wed, 30 May 2007 11:22:30 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Mike Makonnen In-reply-to: <20070529202345.GB1919@rogue.navcom.lan> References: <20070529202345.GB1919@rogue.navcom.lan> Comments: In-reply-to Mike Makonnen message dated "Tue, 29 May 2007 23:23:45 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 May 2007 11:22:30 +0300 From: Danny Braniss Message-ID: Cc: Danny Braniss , rc@freebsd.org Subject: Re: rcorder blues 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, 30 May 2007 08:22:32 -0000 > On Tue, May 29, 2007 at 05:15:57PM +0300, Danny Braniss wrote: > > hi all, > > Under 6.2 I set early_late_divider to amd, and since local_rc > > points to an 'automounted directory', rcorder will include the rc-files > > from my shared-local/etc/rc.d. > > Since 7.0 this 'trick' no longer works, some rc-files, that > > in the first run appeared after amd/early_late_divider, in the second > > run appear before amd, and so never get executed. > > The quick and dirty solution, was for rc.initdiskless to copy > > the 'shared/local_rc/' to /etc/rc.d (thanks to unionfs:-), and so all > > was 'almost' ok. > > Which scripts are changing order, and what ports scripts are involved? some clarification is in order, but first, after a major cleanup [mergemaster no longer works on a cross platform/version], the above problem is now fixed. Since we have multiple platforms (amd64/i386) and versions (4.10/5.x/6.x/7.x) and /usr/local is automounted, it's easier to manage the start up scripts from a more central area, not /usr/local/etc/rc.d (of which we have many copies), also, not all our local stuff comes from ports. I can't remember which script fell in the 'not-yet-done/allready-done' black hole, but it was not from ports, and rather critical. danny From owner-freebsd-rc@FreeBSD.ORG Thu May 31 21:50:20 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 087B516A400 for ; Thu, 31 May 2007 21:50:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id B245C13C468 for ; Thu, 31 May 2007 21:50:19 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 12737 invoked by uid 399); 31 May 2007 21:50:19 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 31 May 2007 21:50:19 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <465F4319.6070504@FreeBSD.org> Date: Thu, 31 May 2007 14:50:17 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: freebsd-rc@freebsd.org X-Enigmail-Version: 0.95.0 OpenPGP: id=D5B2F0FB Content-Type: multipart/mixed; boundary="------------030609080609030602020605" Subject: For review: resolv ordering patch 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, 31 May 2007 21:50:20 -0000 This is a multi-part message in MIME format. --------------030609080609030602020605 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The attached patch makes resolv ordering deterministic, and places it between netif and NETWORKING. It also tightens up the code a little and fixes whitespace issues in resolv. I'm open to suggestions for more precise ordering, but I'd like to get this in sooner than later, and definitely before the freeze. This is designed to fix the issue on RELENG_6 where resolv is not in the early section before including local scripts, but is after (which means that it never gets run). Doug -- This .signature sanitized for your protection --------------030609080609030602020605 Content-Type: text/plain; name="resolv-order.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="resolv-order.diff" diff -u /usr/src/etc/rc.d/NETWORKING ./NETWORKING --- /usr/src/etc/rc.d/NETWORKING Wed May 23 00:24:50 2007 +++ ./NETWORKING Thu May 31 14:30:52 2007 @@ -6,7 +6,7 @@ # PROVIDE: NETWORKING NETWORK # REQUIRE: netif netoptions routing network_ipv6 isdnd ppp -# REQUIRE: routed mrouted route6d mroute6d +# REQUIRE: routed mrouted route6d mroute6d resolv # This is a dummy dependency, for services which require networking # to be operational before starting. diff -u /usr/src/etc/rc.d/resolv ./resolv --- /usr/src/etc/rc.d/resolv Sat Dec 10 12:21:45 2005 +++ ./resolv Thu May 31 14:48:32 2007 @@ -28,6 +28,7 @@ # # PROVIDE: resolv +# REQUIRE: netif # KEYWORD: nojail . /etc/rc.subr @@ -41,15 +42,15 @@ # if [ ! -e /etc/resolv.conf -a \ -n "`/bin/kenv dhcp.domain-name-servers 2> /dev/null`" ]; then - /bin/cat /dev/null > /etc/resolv.conf + > /etc/resolv.conf if [ -n "`/bin/kenv dhcp.domain-name 2> /dev/null`" ]; then echo domain `/bin/kenv dhcp.domain-name` > /etc/resolv.conf fi - set -- `/bin/kenv dhcp.domain-name-servers` - for ns in `IFS=','; echo $*`; do - echo nameserver $ns >> /etc/resolv.conf; - done + set -- `/bin/kenv dhcp.domain-name-servers` + for ns in `IFS=','; echo $*`; do + echo nameserver $ns >> /etc/resolv.conf; + done fi --------------030609080609030602020605--