From owner-freebsd-rc@FreeBSD.ORG Mon Feb 20 11:02:49 2006 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 7CC9A16A420 for ; Mon, 20 Feb 2006 11:02:49 +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 CA17343D46 for ; Mon, 20 Feb 2006 11:02:48 +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 k1KB2mih083687 for ; Mon, 20 Feb 2006 11:02:48 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1KB2lEO083681 for freebsd-rc@freebsd.org; Mon, 20 Feb 2006 11:02:47 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 20 Feb 2006 11:02:47 GMT Message-Id: <200602201102.k1KB2lEO083681@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, 20 Feb 2006 11:02:49 -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 o [2006/02/13] conf/93287 rc [patch] Make rc.subr jail-aware 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- 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/14] conf/88974 rc autoconfigured vlans confuse rc.d/netif o [2006/01/30] conf/92523 rc [patch] allow rc scripts to kill process 6 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue Feb 21 21:25:47 2006 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 0D6B116A425 for ; Tue, 21 Feb 2006 21:25:47 +0000 (GMT) (envelope-from oberman@es.net) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3C6143D45 for ; Tue, 21 Feb 2006 21:25:46 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Tue, 21 Feb 2006 13:25:43 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id A5E4645048; Tue, 21 Feb 2006 13:25:42 -0800 (PST) To: Tobias Roth In-reply-to: Your message of "Tue, 21 Feb 2006 08:51:40 +0100." <20060221075140.GA9101@droopy.unibe.ch> Date: Tue, 21 Feb 2006 13:25:42 -0800 From: "Kevin Oberman" Message-Id: <20060221212542.A5E4645048@ptavv.es.net> Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in 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, 21 Feb 2006 21:25:47 -0000 > Date: Tue, 21 Feb 2006 08:51:40 +0100 > From: Tobias Roth > > On Mon, Feb 20, 2006 at 08:53:24PM -0800, Kevin Oberman wrote: > > > On Mon, Feb 20, 2006 at 05:20:29PM -0800, Kevin Oberman wrote: > > > > I have a script (Tobias Roth's profile) that runs right after root is > > > > mounted r/w. With the new OpenBSD dhclient, it fails completely. If I > > > > run it later (after the system is up), it works fine. > > > > > > > > The only messages I get are: > > > > chroot > > > > exit; > > > > > > > > Any idea what is causing this and if there is a work-around other than > > > > ISC dhclient? > > Kevin: Did you try the latest version? DHCP works fine here with rev25, > which is the second latest available. The latest has the REQUIRE and > BEFORE lines changed as you suggested, to allow fscking again. > I just tried the latest. dhclient still fails on current. the problem is in dhclient.c at about line 407 where it checks for chroot. For this to work, you must either have defined _PATH_VAREMPTY to your chrooted environment or have /var/empty on your system. What I plan on doing later today is to restore the mdmfs stuff and create a /tmp/empty and define _PATH_VAREMPTY to point at it in lieu of /var/empty. > > > I really don't have any idea where to start debugging this. Can you > > > verify that profile runs before netif? If it doesn't, profile is > > > probably messing with the interface in an unsupported way and killing > > > dhclient. With the base doing a better job of supporting dynamic > > > configuration, we're diverging more and more from the 4.x model profile > > > is based on so it's going to be increasingly difficult to make it work > > > without major rewrites. > > Brooks: I'm happy to debug, since the problem is obviously with profile and > not with dhclient. Yes, dhclient is killed for the following reason: After > a profile that requires dhcp has been tested for, the script attempts to > restore the system context to how it usually is at this point in the rc.d/ > chain. So since profile runs between root and mountcritlocal, dhclient > is killed. The next three things that can happen are the check for the > next profile (which may or may not require dhcp), the selection of the > current profile (in that case, the dhclient kill may be not needed, as it > will run later in the rc.d/ chain again) or the usage of the default > profile (i.e. no union mounts over /etc, there again dhclient may or may > not be needed again later). > > How would you attempt to handle this situation, if killing dhclient is > not permitted/desired? Do you have other critique or ideas about profile, > how to improve it? I still think its way of handling the whole 'laptop > multihoming' problem is the most flexible, and I also think with some > more work it can be made ready for a trial in -CURRENT. Please let me > know if you disagree. > > The only other way of handling 'laptop multihoming' I see is to create > a program that specifically handles all the testing, and put it into > /sbin. But even then, I think using union mounts is the way to go. I'd > be glad to discuss this more deeply. I am seeing a problem when I run dhclient twice, even though the first has been killed. I suspect it may be because the leases file from the profile run has been lost. It may be required to put the leases file from that operation somewhere that is not volatile. Within my time constraints, I'm happy to debug, too. > > I should have spent a bit longer looking at the sources before posting > > the question. Sorry. > > > > I think I've got it, but I won't be able to test it until tomorrow. > > > > profile.sh wants to run as early as possible as it allows you to pick a > > different set of files in /etc depending on where you are. It runs after > > root and before mountcritlocal. If you run a startup script before > > mountcritlocal, you don't have /var/empty and the chroot(_PATH_VAREMPTY) > > fails, printing out the less than useful "chroot" message. > > Kevin: So you probably have / and /var on different partitions, and > that is what breaks profile. I'll look into this, it must be fixed. > Can you confirm that this might be the cause of the problem? Actually, I don't as only root is mounted. /var is simply a directory on / at the time profile runs. Since / is now mounted rw, I can write into /var (or /tmp) with no problems. I just have to make sure to clean up as some root partitions are pretty tight on space. (Not a problem for me, though.) I am still mulling the pros and cons of a malloc'ed md and I think I've decided to go back to it as it does resolve the clean-up issue very nicely. It may not be needed with AFTER: root, but it looks like the "right" answer. > > profile.sh runs when there is really not much system to work with. I > > modified the script to create /var/empty and then clean it up. It > > already creates a config file in /var and specifies that the lease file > > goes into /var, as well. (Of course, at this point /var is just a > > directory; not a mountpoint.) > > What actually happens is that a temporary memory filesystem is created and > placed over /tmp. There are two reasons for this. The first one is still > valid: The default timeout for dhclient is 60s, which is way too long > for a profile check. Since the timeout cannot be specified on the > commandline, a config file that lowers the timeout has to be created and > stored somewhere. The second reason is that earlier versions of profile > where executed before root, and thus had no place to save temporary files. > So the temporary memory file system was a hack to get a place to store > both the lease and the config file for the duration of the dhcp test. The > isc version of dhclient also wanted to store a pid file somewhere. > > Possible improvements: > 1) change dhclient to accept a timeout on the commandline > 2) store the lease somewhere on /, now that it is rw > > I would really like to make profile more useful and bring it to a state > where people don't think about it as 'just some ugly hack'. The problem > it tackles is one that pretty much every laptop owner has, and there is > much demand for a clean solution. And profile, while not as easy to use as Windows zero config, is WAY, WAY more flexible. > Thanks, Tobias > > P.S. should we move this discussion to freebsd-rc? Done. From owner-freebsd-rc@FreeBSD.ORG Tue Feb 21 21:28:28 2006 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 2DB1016A422 for ; Tue, 21 Feb 2006 21:28:28 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAF6343D60 for ; Tue, 21 Feb 2006 21:28:26 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k1LLSICf028635; Tue, 21 Feb 2006 13:28:19 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k1LLSI60028634; Tue, 21 Feb 2006 13:28:18 -0800 Date: Tue, 21 Feb 2006 13:28:18 -0800 From: Brooks Davis To: Tobias Roth Message-ID: <20060221212818.GA22713@odin.ac.hmc.edu> References: <20060221023750.GA32185@odin.ac.hmc.edu> <20060221045324.8717645048@ptavv.es.net> <20060221075140.GA9101@droopy.unibe.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <20060221075140.GA9101@droopy.unibe.ch> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-rc@freebsd.org, Kevin Oberman Subject: Re: dhclient existing when run early in 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, 21 Feb 2006 21:28:28 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Moved to freebsd-rc] On Tue, Feb 21, 2006 at 08:51:40AM +0100, Tobias Roth wrote: > On Mon, Feb 20, 2006 at 08:53:24PM -0800, Kevin Oberman wrote: > > > On Mon, Feb 20, 2006 at 05:20:29PM -0800, Kevin Oberman wrote: > > > > I have a script (Tobias Roth's profile) that runs right after root = is > > > > mounted r/w. With the new OpenBSD dhclient, it fails completely. If= I > > > > run it later (after the system is up), it works fine. > > > >=20 > > > > The only messages I get are: > > > > chroot > > > > exit; > > > >=20 > > > > Any idea what is causing this and if there is a work-around other t= han > > > > ISC dhclient? >=20 > Kevin: Did you try the latest version? DHCP works fine here with rev25, > which is the second latest available. The latest has the REQUIRE and > BEFORE lines changed as you suggested, to allow fscking again. >=20 > > > I really don't have any idea where to start debugging this. Can you > > > verify that profile runs before netif? If it doesn't, profile is > > > probably messing with the interface in an unsupported way and killing > > > dhclient. With the base doing a better job of supporting dynamic > > > configuration, we're diverging more and more from the 4.x model profi= le > > > is based on so it's going to be increasingly difficult to make it work > > > without major rewrites. >=20 > Brooks: I'm happy to debug, since the problem is obviously with profile a= nd > not with dhclient. Yes, dhclient is killed for the following reason: After > a profile that requires dhcp has been tested for, the script attempts to > restore the system context to how it usually is at this point in the rc.d/ > chain. So since profile runs between root and mountcritlocal, dhclient > is killed. The next three things that can happen are the check for the > next profile (which may or may not require dhcp), the selection of the > current profile (in that case, the dhclient kill may be not needed, as it > will run later in the rc.d/ chain again) or the usage of the default > profile (i.e. no union mounts over /etc, there again dhclient may or may > not be needed again later). > =20 > How would you attempt to handle this situation, if killing dhclient is > not permitted/desired? Do you have other critique or ideas about profile, > how to improve it? I still think its way of handling the whole 'laptop > multihoming' problem is the most flexible, and I also think with some > more work it can be made ready for a trial in -CURRENT. Please let me > know if you disagree. To be honest, I don't see anything profile.sh is doing that should cause a problem for dhclient other than running it way too early so long as /etc/rc.d/netif is run correctly which it looks like should be the case. That may change in the future as I'm planning to more to an even more dynamic dhclient configuration for 7.0 where by default it isn't run except when the link comes up and the kernel signals devd. > The only other way of handling 'laptop multihoming' I see is to create > a program that specifically handles all the testing, and put it into > /sbin. But even then, I think using union mounts is the way to go. I'd > be glad to discuss this more deeply. I think a seperate probing program might be worthwhile. I think jwd's variant symlink support might make a cleaner solution since it would eliminate the need for the union mounts and much of the maintance headache involved in fixing the default files > > I should have spent a bit longer looking at the sources before posting > > the question. Sorry. > >=20 > > I think I've got it, but I won't be able to test it until tomorrow. > >=20 > > profile.sh wants to run as early as possible as it allows you to pick a > > different set of files in /etc depending on where you are. It runs after > > root and before mountcritlocal. If you run a startup script before > > mountcritlocal, you don't have /var/empty and the chroot(_PATH_VAREMPTY) > > fails, printing out the less than useful "chroot" message.=20 >=20 > Kevin: So you probably have / and /var on different partitions, and > that is what breaks profile. I'll look into this, it must be fixed. > Can you confirm that this might be the cause of the problem? FWIW, just creating a /var/empty on / and leaving it there would be pretty harmless. It would waste one whole inode. :) > > BTW, profile was originally written for V5 as it needs RCng to do many > > of its things for suspend and resume. (I am not positive that Tobias > > didn't have a V4 version of it, but I don't think so and the code would > > have had be have been almost totally re-written.) >=20 > There never was a V4 version. Sorry, that was a misrecollection on my part. :( > > profile.sh runs when there is really not much system to work with. I > > modified the script to create /var/empty and then clean it up. It > > already creates a config file in /var and specifies that the lease file > > goes into /var, as well. (Of course, at this point /var is just a > > directory; not a mountpoint.) >=20 > What actually happens is that a temporary memory filesystem is created an= d=20 > placed over /tmp. There are two reasons for this. The first one is still > valid: The default timeout for dhclient is 60s, which is way too long > for a profile check. Since the timeout cannot be specified on the > commandline, a config file that lowers the timeout has to be created and > stored somewhere. The second reason is that earlier versions of profile > where executed before root, and thus had no place to save temporary files. > So the temporary memory file system was a hack to get a place to store > both the lease and the config file for the duration of the dhcp test. The > isc version of dhclient also wanted to store a pid file somewhere. >=20 > Possible improvements: > 1) change dhclient to accept a timeout on the commandline This would be a useful addon. Actually, I'd like to see both the option to specify a shorter one and the option to keep trying forever since that's what's wanted in some scenerios. > 2) store the lease somewhere on /, now that it is rw Unless profile were moved to after cleanvar you'll need to shutdown dhclient and start it back up again later. > I would really like to make profile more useful and bring it to a state > where people don't think about it as 'just some ugly hack'. The problem > it tackles is one that pretty much every laptop owner has, and there is > much demand for a clean solution. I like the idea of being able to configure things based on your location. I'm not sure about profile's model of mobility. With the new dhclient and the change to triggering on link state events we're moving to a much more dynamic model of interface management. From my read of profile.sh, the model you are using appears to be that the device's location only really changes when the laptop is either off or suspended. By contrast, we've been assuming that the network can change at any time without warning. We also don't assume the same interface will be used over time. I don't think the two models are totally incompatable, but there are likely to be some rough edges in various places. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFD+4XxXY6L6fI4GtQRAlqmAKC94sT7WtXyY1pVHAfp3YX5ZLBeoQCdEgoW 1Hj8vGkDvLEjqGOjv8q9QiQ= =oj3G -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp-- From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 01:54:22 2006 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 182CF16A420; Wed, 22 Feb 2006 01:54:22 +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 CF7AC43D53; Wed, 22 Feb 2006 01:54:21 +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 k1M1sLv5059106; Wed, 22 Feb 2006 01:54:21 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M1sLW4059102; Wed, 22 Feb 2006 01:54:21 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 01:54:21 GMT From: Doug Barton Message-Id: <200602220154.k1M1sLW4059102@freefall.freebsd.org> To: dougb@FreeBSD.org, mtm@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/45226: Fix for rc.network, ppp-user annoyance 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, 22 Feb 2006 01:54:22 -0000 Synopsis: Fix for rc.network, ppp-user annoyance Responsible-Changed-From-To: mtm->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 01:53:41 UTC 2006 Responsible-Changed-Why: Mike has been MIA for a while, so point this PR at the list. http://www.freebsd.org/cgi/query-pr.cgi?pr=45226 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:20:21 2006 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 EE36016A420; Wed, 22 Feb 2006 02:20:20 +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 BA51443D46; Wed, 22 Feb 2006 02:20:20 +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 k1M2KKUb060537; Wed, 22 Feb 2006 02:20:20 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2KKlU060533; Wed, 22 Feb 2006 02:20:20 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:20:20 GMT From: Doug Barton Message-Id: <200602220220.k1M2KKlU060533@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-doc@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: docs/68453: [patch] rc.subr.8 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, 22 Feb 2006 02:20:21 -0000 Synopsis: [patch] rc.subr.8 Responsible-Changed-From-To: freebsd-doc->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:20:05 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:21:51 2006 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 2CE9716A420; Wed, 22 Feb 2006 02:21:51 +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 C36F743D49; Wed, 22 Feb 2006 02:21:50 +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 k1M2LonU060595; Wed, 22 Feb 2006 02:21:50 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2LoXh060591; Wed, 22 Feb 2006 02:21:50 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:21:50 GMT From: Doug Barton Message-Id: <200602220221.k1M2LoXh060591@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/74005: [PATCH] aditional support for /etc/rc.initdiskless 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, 22 Feb 2006 02:21:51 -0000 Synopsis: [PATCH] aditional support for /etc/rc.initdiskless Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:21:36 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=74005 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:23:04 2006 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 E682D16A420; Wed, 22 Feb 2006 02:23:04 +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 AE70343D48; Wed, 22 Feb 2006 02:23:04 +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 k1M2N48L060660; Wed, 22 Feb 2006 02:23:04 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2N4sZ060656; Wed, 22 Feb 2006 02:23:04 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:23:04 GMT From: Doug Barton Message-Id: <200602220223.k1M2N4sZ060656@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/78906: [patch] Allow mixer_enable="NO" in rc.conf 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, 22 Feb 2006 02:23:05 -0000 Synopsis: [patch] Allow mixer_enable="NO" in rc.conf Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:22:52 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=78906 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:23:41 2006 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 29E6916A420; Wed, 22 Feb 2006 02:23:41 +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 E5F3343D55; Wed, 22 Feb 2006 02:23:40 +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 k1M2Ne9c060708; Wed, 22 Feb 2006 02:23:40 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2NegL060704; Wed, 22 Feb 2006 02:23:40 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:23:40 GMT From: Doug Barton Message-Id: <200602220223.k1M2NegL060704@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/82738: [patch] add amd_program line to defaults/rc.conf 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, 22 Feb 2006 02:23:41 -0000 Synopsis: [patch] add amd_program line to defaults/rc.conf Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:23:30 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=82738 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:24:55 2006 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 D015516A420; Wed, 22 Feb 2006 02:24:55 +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 99FB843D46; Wed, 22 Feb 2006 02:24:55 +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 k1M2Otxv060777; Wed, 22 Feb 2006 02:24:55 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2Ot0Y060773; Wed, 22 Feb 2006 02:24:55 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:24:55 GMT From: Doug Barton Message-Id: <200602220224.k1M2Ot0Y060773@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/88913: [patch] wrapper support for rc.subr 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, 22 Feb 2006 02:24:56 -0000 Synopsis: [patch] wrapper support for rc.subr Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:24:42 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=88913 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 02:25:35 2006 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 350E116A420; Wed, 22 Feb 2006 02:25:35 +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 33B4E43D5E; Wed, 22 Feb 2006 02:25:32 +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 k1M2PWn3061254; Wed, 22 Feb 2006 02:25:32 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M2PV6r061250; Wed, 22 Feb 2006 02:25:31 GMT (envelope-from dougb) Date: Wed, 22 Feb 2006 02:25:31 GMT From: Doug Barton Message-Id: <200602220225.k1M2PV6r061250@freefall.freebsd.org> To: dougb@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/89870: [patch] feature request to make netif verbose rc.conf toggle 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, 22 Feb 2006 02:25:35 -0000 Synopsis: [patch] feature request to make netif verbose rc.conf toggle Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: dougb Responsible-Changed-When: Wed Feb 22 02:25:21 UTC 2006 Responsible-Changed-Why: Bring to the attention of the list http://www.freebsd.org/cgi/query-pr.cgi?pr=89870 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 05:14:03 2006 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 0675C16A422; Wed, 22 Feb 2006 05:14:03 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9598543D48; Wed, 22 Feb 2006 05:14:02 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from freefall.freebsd.org (brooks@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1M5E2UH075684; Wed, 22 Feb 2006 05:14:02 GMT (envelope-from brooks@freefall.freebsd.org) Received: (from brooks@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M5E1EB075680; Wed, 22 Feb 2006 05:14:01 GMT (envelope-from brooks) Date: Wed, 22 Feb 2006 05:14:01 GMT From: Brooks Davis Message-Id: <200602220514.k1M5E1EB075680@freefall.freebsd.org> To: josemi@freebsd.jazztel.es, brooks@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/74005: [PATCH] aditional support for /etc/rc.initdiskless 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, 22 Feb 2006 05:14:03 -0000 Synopsis: [PATCH] aditional support for /etc/rc.initdiskless State-Changed-From-To: open->feedback State-Changed-By: brooks State-Changed-When: Wed Feb 22 05:07:06 UTC 2006 State-Changed-Why: Given that we've replaced cpio with tar in HEAD and RELENG_6 I'm not convinced the added complexity it worth it here. Moving the tar call into a function to make it easy to edit would make some sense, but I don't feel a great desire to support non-default installs out of the box here given the cost involved. Note that with tar being used, virtually any archive will work as the cpio.gz. http://www.freebsd.org/cgi/query-pr.cgi?pr=74005 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 05:15:18 2006 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 BB9F316A422; Wed, 22 Feb 2006 05:15:18 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 791B643D4C; Wed, 22 Feb 2006 05:15:18 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from freefall.freebsd.org (brooks@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1M5FIQx075742; Wed, 22 Feb 2006 05:15:18 GMT (envelope-from brooks@freefall.freebsd.org) Received: (from brooks@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M5FI7G075738; Wed, 22 Feb 2006 05:15:18 GMT (envelope-from brooks) Date: Wed, 22 Feb 2006 05:15:18 GMT From: Brooks Davis Message-Id: <200602220515.k1M5FI7G075738@freefall.freebsd.org> To: josemi@freebsd.jazztel.es, brooks@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/74005: [PATCH] aditional support for /etc/rc.initdiskless 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, 22 Feb 2006 05:15:18 -0000 Synopsis: [PATCH] aditional support for /etc/rc.initdiskless State-Changed-From-To: feedback->closed State-Changed-By: brooks State-Changed-When: Wed Feb 22 05:14:40 UTC 2006 State-Changed-Why: As stated in the previous message I'm not all that intrested in this proposed change and the senders address bounces. http://www.freebsd.org/cgi/query-pr.cgi?pr=74005 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 06:03:27 2006 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 CD4AA16A420 for ; Wed, 22 Feb 2006 06:03:27 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3801C43D45 for ; Wed, 22 Feb 2006 06:03:26 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.4/8.13.4) with ESMTP id k1M63Pcu085729 for ; Wed, 22 Feb 2006 09:03:25 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Wed, 22 Feb 2006 09:03:25 +0300 (MSK) From: Dmitry Morozovsky To: freebsd-rc@FreeBSd.org Message-ID: <20060222085814.U85700@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Wed, 22 Feb 2006 09:03:26 +0300 (MSK) Cc: Subject: /etc/rc.d/earlyroot (fwd) 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, 22 Feb 2006 06:03:28 -0000 Dear colleagues, what about creating the following rc.d script? There are situations where you should modify something on a root partition, and console is not available; early.sh is not suitable because when it executes root is mounted r/o, and duplicating /etc/rc.d/root functionality in /etc/rc.early or invoking it from there does not seem elegant nor appropriate to me. You thoughts? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ -- 8< -- #!/bin/sh # # $FreeBSD$ # # REQUIRE: root # BEFORE: mountcritlocal # KEYWORD: nojail if [ -r /etc/rc.earlyroot ]; then sh /etc/rc.earlyroot fi -- 8< -- From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 10:59:55 2006 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 0CF5B16A420; Wed, 22 Feb 2006 10:59:55 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B87A743D45; Wed, 22 Feb 2006 10:59:54 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (yar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1MAxs1A096117; Wed, 22 Feb 2006 10:59:54 GMT (envelope-from yar@freefall.freebsd.org) Received: (from yar@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1MAxsNA096113; Wed, 22 Feb 2006 10:59:54 GMT (envelope-from yar) Date: Wed, 22 Feb 2006 10:59:54 GMT From: Yar Tikhiy Message-Id: <200602221059.k1MAxsNA096113@freefall.freebsd.org> To: yar@FreeBSD.org, freebsd-rc@FreeBSD.org, patched@FreeBSD.org Cc: Subject: Re: docs/68453: [patch] rc.subr.8 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, 22 Feb 2006 10:59:55 -0000 Synopsis: [patch] rc.subr.8 Responsible-Changed-From-To: freebsd-rc->patched Responsible-Changed-By: yar Responsible-Changed-When: Wed Feb 22 10:59:23 UTC 2006 Responsible-Changed-Why: Fixed in HEAD, MFC is due. Thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 11:13:23 2006 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 55F0016A435 for ; Wed, 22 Feb 2006 11:13:23 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEA1043D45 for ; Wed, 22 Feb 2006 11:13:19 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id k1MBDFiw096780; Wed, 22 Feb 2006 14:13:15 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id k1MBDFlo096778; Wed, 22 Feb 2006 14:13:15 +0300 (MSK) (envelope-from yar) Date: Wed, 22 Feb 2006 14:13:14 +0300 From: Yar Tikhiy To: Dmitry Morozovsky Message-ID: <20060222111314.GB95106@comp.chem.msu.su> References: <20060222085814.U85700@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060222085814.U85700@woozle.rinet.ru> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d/earlyroot (fwd) 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, 22 Feb 2006 11:13:23 -0000 On Wed, Feb 22, 2006 at 09:03:25AM +0300, Dmitry Morozovsky wrote: > Dear colleagues, > > what about creating the following rc.d script? > > There are situations where you should modify something on a root partition, and > console is not available; early.sh is not suitable because when it executes > root is mounted r/o, and duplicating /etc/rc.d/root functionality in > /etc/rc.early or invoking it from there does not seem elegant nor appropriate > to me. > > You thoughts? > > Sincerely, > D.Marck [DM5020, MCK-RIPE, DM3-RIPN] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ > -- 8< -- > #!/bin/sh > # > # $FreeBSD$ > # > > # REQUIRE: root > # BEFORE: mountcritlocal > # KEYWORD: nojail > > if [ -r /etc/rc.earlyroot ]; then > sh /etc/rc.earlyroot > fi > -- 8< -- Shouldn't every rc.d script contain a PROVIDE line? -- Yar From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 11:17:13 2006 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 49A7716A420 for ; Wed, 22 Feb 2006 11:17:13 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6993443D5D for ; Wed, 22 Feb 2006 11:17:00 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.4/8.13.4) with ESMTP id k1MBGLmI063699; Wed, 22 Feb 2006 14:16:21 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Wed, 22 Feb 2006 14:16:21 +0300 (MSK) From: Dmitry Morozovsky To: Yar Tikhiy In-Reply-To: <20060222111314.GB95106@comp.chem.msu.su> Message-ID: <20060222141444.X2015@woozle.rinet.ru> References: <20060222085814.U85700@woozle.rinet.ru> <20060222111314.GB95106@comp.chem.msu.su> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Wed, 22 Feb 2006 14:16:21 +0300 (MSK) Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d/earlyroot (fwd) 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, 22 Feb 2006 11:17:13 -0000 On Wed, 22 Feb 2006, Yar Tikhiy wrote: YT> > -- 8< -- YT> > #!/bin/sh YT> > # YT> > # $FreeBSD$ YT> > # YT> > YT> > # REQUIRE: root YT> > # BEFORE: mountcritlocal YT> > # KEYWORD: nojail YT> > YT> > if [ -r /etc/rc.earlyroot ]; then YT> > sh /etc/rc.earlyroot YT> > fi YT> > -- 8< -- YT> YT> Shouldn't every rc.d script contain a PROVIDE line? Sure, # PROVIDE: earlyroot line was unintentionally omitted. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 17:35:46 2006 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 4FC4316A420 for ; Wed, 22 Feb 2006 17:35:46 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 025DE43D45 for ; Wed, 22 Feb 2006 17:35:45 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k1MHZjX2008692; Wed, 22 Feb 2006 09:35:45 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k1MHZiBW008690; Wed, 22 Feb 2006 09:35:44 -0800 Date: Wed, 22 Feb 2006 09:35:44 -0800 From: Brooks Davis To: Dmitry Morozovsky Message-ID: <20060222173544.GB7744@odin.ac.hmc.edu> References: <20060222085814.U85700@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <20060222085814.U85700@woozle.rinet.ru> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d/earlyroot (fwd) 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, 22 Feb 2006 17:35:46 -0000 --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2006 at 09:03:25AM +0300, Dmitry Morozovsky wrote: > Dear colleagues, >=20 > what about creating the following rc.d script?=20 >=20 > There are situations where you should modify something on a root partitio= n, and=20 > console is not available; early.sh is not suitable because when it execut= es=20 > root is mounted r/o, and duplicating /etc/rc.d/root functionality in=20 > /etc/rc.early or invoking it from there does not seem elegant nor appropr= iate=20 > to me. >=20 > You thoughts? The continued existance on /etc/rc.d/early.sh is a mistake which should be corrected so adding another version doesn't seem useful. If you need to do something early on, you can simply drop a script in /etc/rc.d similar to the one you propsed except with actual content. A large part of the point of the rc system is to allow this sort of thing. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFD/KDwXY6L6fI4GtQRAiLjAJ9nazCWLFRo9r/Kze8Y9U8fKumZmgCgq0x8 te1tEjljkJxEXNKGbnKcydI= =NTF5 -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y-- From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 17:41:56 2006 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 2948516A420; Wed, 22 Feb 2006 17:41:56 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from mailhub03.unibe.ch (mailhub03.unibe.ch [130.92.9.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1EC343D75; Wed, 22 Feb 2006 17:41:45 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub02-eth0.unibe.ch [130.92.254.66]) by mailhub03.unibe.ch (Postfix) with ESMTP id D72D72908D; Wed, 22 Feb 2006 18:41:44 +0100 (CET) Received: from mailhub03.unibe.ch ([130.92.9.70]) by localhost (scanhub02.unibe.ch [130.92.254.66]) (amavisd-new, port 10024) with LMTP id 22732-01-89; Wed, 22 Feb 2006 18:41:42 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub03.unibe.ch (Postfix) with ESMTP id E5D5928FC8; Wed, 22 Feb 2006 18:41:42 +0100 (CET) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id k1MHfg8Z016565; Wed, 22 Feb 2006 18:41:42 +0100 (MET) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id k1MHfgRu018262; Wed, 22 Feb 2006 18:41:42 +0100 (MET) Date: Wed, 22 Feb 2006 18:41:42 +0100 From: Tobias Roth To: Kevin Oberman Message-ID: <20060222174142.GA18232@droopy.unibe.ch> References: <20060221075140.GA9101@droopy.unibe.ch> <20060222170212.BAB0645046@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060222170212.BAB0645046@ptavv.es.net> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Cc: freebsd-rc@freebsd.org, current@freebsd.org Subject: Re: dhclient existing when run early in 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: Wed, 22 Feb 2006 17:41:56 -0000 On Wed, Feb 22, 2006 at 09:02:12AM -0800, Kevin Oberman wrote: > I have dhclient almost working on -current. I just added the following 3 > lines before running dhclient: > if ! [ -d "/var/empty" ]; then > mkdir /var/empty > fi > > I don't delete the directory, so it's only created once and just sits > there forever. I'll add that to the next revision. I'm installing and setting up -CURRENT right now so I can continue development there. > Now, the correct profile is selected, but I now hang in dhclient in > netif. This may be impacted by the fact that I am running ISC > dhcp-client because my Prism 2.5 does not play will with the one in > -current. Yeah, in rev 25I adapted profile from the old ISC dhcp to the new OpenBSD dhcp. You might want to revert this if you depend on ISC. > A ^C clears things and the system starts fine with the correct > configuration of the interface. Funny, I had the exact behaviour when trying to run isc-compatible profile with the new dhclient from OpenBSD :-) Oh well, this is getting a bit messy. I'll respond to Bruces mail when I have had time to think things through a bit. For now, I will try to make profile working with 6.0 and 7.0 and keep the existing functionality, while figuring in which direction to go in the future. cheers, Tobias btw, I'm cc'ing freebsd-current@ since you accidentally sent your mail there, so people don't get too confused. From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 18:31:35 2006 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 2D83D16A420 for ; Wed, 22 Feb 2006 18:31:35 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from mailhub03.unibe.ch (mailhub03.unibe.ch [130.92.9.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2D1443D48 for ; Wed, 22 Feb 2006 18:31:33 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub01-eth0.unibe.ch [130.92.254.65]) by mailhub03.unibe.ch (Postfix) with ESMTP id 1C2AD29088; Wed, 22 Feb 2006 19:31:33 +0100 (CET) Received: from mailhub03.unibe.ch ([130.92.9.70]) by localhost (scanhub01.unibe.ch [130.92.254.65]) (amavisd-new, port 10024) with LMTP id 27183-08-26; Wed, 22 Feb 2006 19:31:30 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub03.unibe.ch (Postfix) with ESMTP id A3AF728A18; Wed, 22 Feb 2006 19:31:30 +0100 (CET) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id k1MIVU8Z022484; Wed, 22 Feb 2006 19:31:30 +0100 (MET) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id k1MIVUMa018392; Wed, 22 Feb 2006 19:31:30 +0100 (MET) Date: Wed, 22 Feb 2006 19:31:30 +0100 From: Tobias Roth To: Kevin Oberman Message-ID: <20060222183130.GA18354@droopy.unibe.ch> References: <20060221075140.GA9101@droopy.unibe.ch> <20060222170212.BAB0645046@ptavv.es.net> <20060222174142.GA18232@droopy.unibe.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060222174142.GA18232@droopy.unibe.ch> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in 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: Wed, 22 Feb 2006 18:31:35 -0000 On Wed, Feb 22, 2006 at 06:41:42PM +0100, Tobias Roth wrote: > On Wed, Feb 22, 2006 at 09:02:12AM -0800, Kevin Oberman wrote: > > I have dhclient almost working on -current. I just added the following 3 > > lines before running dhclient: > > if ! [ -d "/var/empty" ]; then > > mkdir /var/empty > > fi > > > > I don't delete the directory, so it's only created once and just sits > > there forever. > > I'll add that to the next revision. I'm installing and setting up > -CURRENT right now so I can continue development there. By the way, do you know why you have no /var/empty in the first place? I just tried profile with a vanilla current from feb 7, and it works even without your trick above, since I already had a /var/empty. > > Now, the correct profile is selected, but I now hang in dhclient in > > netif. This may be impacted by the fact that I am running ISC > > dhcp-client because my Prism 2.5 does not play will with the one in > > -current. > > Yeah, in rev 25I adapted profile from the old ISC dhcp to the new > OpenBSD dhcp. You might want to revert this if you depend on ISC. On second thought, I am now confused. Are you saying that you use both dhclients concurrently? The OpenBSD one during profile (since it is run before mountcritlocal and you probably have isc-dhclient installed under /usr/local), and isc after mountcritlocal has been executed? greets, Tobias From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 18:53:18 2006 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 35E8616A420 for ; Wed, 22 Feb 2006 18:53:18 +0000 (GMT) (envelope-from oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3C4243D46 for ; Wed, 22 Feb 2006 18:53:17 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Wed, 22 Feb 2006 10:53:14 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id AEE0D45041; Wed, 22 Feb 2006 10:53:13 -0800 (PST) To: Tobias Roth In-reply-to: Your message of "Wed, 22 Feb 2006 19:31:30 +0100." <20060222183130.GA18354@droopy.unibe.ch> Date: Wed, 22 Feb 2006 10:53:13 -0800 From: "Kevin Oberman" Message-Id: <20060222185313.AEE0D45041@ptavv.es.net> Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in 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: Wed, 22 Feb 2006 18:53:18 -0000 > Date: Wed, 22 Feb 2006 19:31:30 +0100 > From: Tobias Roth > > On Wed, Feb 22, 2006 at 06:41:42PM +0100, Tobias Roth wrote: > > On Wed, Feb 22, 2006 at 09:02:12AM -0800, Kevin Oberman wrote: > > > I have dhclient almost working on -current. I just added the following 3 > > > lines before running dhclient: > > > if ! [ -d "/var/empty" ]; then > > > mkdir /var/empty > > > fi > > > > > > I don't delete the directory, so it's only created once and just sits > > > there forever. > > > > I'll add that to the next revision. I'm installing and setting up > > -CURRENT right now so I can continue development there. > > By the way, do you know why you have no /var/empty in the first place? > I just tried profile with a vanilla current from feb 7, and it works > even without your trick above, since I already had a /var/empty. I do have /var/empty, but not until mountcritlocal. profile runs dhclient before I have /var/empty. Since the cost of putting the /var/empty in the /var directory (not yet a mountpoint) costs 1 inode and nothing more. It is, of course, hidden when the var partition is mounted with the "real" /var/empty directory. > > > Now, the correct profile is selected, but I now hang in dhclient in > > > netif. This may be impacted by the fact that I am running ISC > > > dhcp-client because my Prism 2.5 does not play will with the one in > > > -current. > > > > Yeah, in rev 25I adapted profile from the old ISC dhcp to the new > > OpenBSD dhcp. You might want to revert this if you depend on ISC. > > On second thought, I am now confused. Are you saying that you use > both dhclients concurrently? The OpenBSD one during profile (since > it is run before mountcritlocal and you probably have isc-dhclient > installed under /usr/local), and isc after mountcritlocal has been > executed? I should have clarified this. I use the ISC dhclient, but it is not available when profile.sh runs (before mountcritlocal), so the dhclient used by profile is the default one. I could install ISC dhclient in /sbin, but I try not to muck with /sbin unless I REALLY have to so so. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 21:43:15 2006 Return-Path: X-Original-To: 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 6860D16A420; Wed, 22 Feb 2006 21:43:15 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60D3C43D75; Wed, 22 Feb 2006 21:43:07 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id k1MLh2Cn009186; Wed, 22 Feb 2006 13:43:03 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: stable@freebsd.org, rc@freebsd.org, sysadmin@alexdupre.com Date: Wed, 22 Feb 2006 16:42:09 -0500 User-Agent: KMail/1.9.1 X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*. X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Subject: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 22 Feb 2006 21:43:15 -0000 I installed mysql50-server from an up-to-date ports tree on a new server I'm setting up running FreeBSD 6.1. The port adds the appropriate paths to ldconfig, but the startup script does not require ldconfig. This was causing mysqld not to start up correctly since on my system the mysql-server.sh script was being run before /etc/rc.d/ldconfig. The mysql script failed with errors about libraries being unavailable, etc. Running the mysql-server.sh script again once the system is up works fine. I'm not entirely conversant with the new rc script syntax, but I tried adding "ldconfig" to the REQUIRES line of mysql-server.sh and that seems to have fixed the problem. I now have two questions: 1) Is this a correct fix? 2) If so, should I file a PR with a patch or can someone just get this committed? Thanks, JN From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 07:19:13 2006 Return-Path: X-Original-To: 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 73C1E16A423 for ; Thu, 23 Feb 2006 07:19:13 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: from host1.netprojects.it (host1.netprojects.it [193.254.241.205]) by mx1.FreeBSD.org (Postfix) with SMTP id 2CA4A43D46 for ; Thu, 23 Feb 2006 07:19:11 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: (qmail 75418 invoked by uid 89); 23 Feb 2006 07:19:10 -0000 Received: from unknown (HELO ?192.168.178.23?) (sysadmin@alexdupre.com@81.174.31.42) by netprojects.it with SMTP; 23 Feb 2006 07:19:10 -0000 Message-ID: <43FD61ED.6050403@alexdupre.com> Date: Thu, 23 Feb 2006 08:19:09 +0100 From: Alex Dupre User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Nielsen References: <200602221642.10012.lists@jnielsen.net> In-Reply-To: <200602221642.10012.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org, rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 07:19:13 -0000 John Nielsen wrote: > I'm not entirely conversant with the new rc script syntax, but I tried adding > "ldconfig" to the REQUIRES line of mysql-server.sh and that seems to have > fixed the problem. Perhaps a better solution would be to replace the REQUIRE/BEFORE rows with a single "REQUIRE: DAEMON". What about it? -- Alex Dupre From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 07:46:55 2006 Return-Path: X-Original-To: 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 A01A216A420; Thu, 23 Feb 2006 07:46:55 +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 2529E43D45; Thu, 23 Feb 2006 07:46:55 +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 5E00E11C09; Thu, 23 Feb 2006 08:46:50 +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 94647-07; Thu, 23 Feb 2006 08:46:43 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id A74181143A; Thu, 23 Feb 2006 08:46:42 +0100 (CET) From: Florent Thoumie To: freebsd-rc@freebsd.org Date: Thu, 23 Feb 2006 08:46:30 +0100 User-Agent: KMail/1.8.2 References: <200602221642.10012.lists@jnielsen.net> <43FD61ED.6050403@alexdupre.com> In-Reply-To: <43FD61ED.6050403@alexdupre.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3302210.CCzSlGS1f8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602230846.37388.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: stable@freebsd.org, Alex Dupre , John Nielsen , rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 07:46:55 -0000 --nextPart3302210.CCzSlGS1f8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 23 February 2006 08:19, Alex Dupre wrote: > John Nielsen wrote: > > I'm not entirely conversant with the new rc script syntax, but I tried > > adding "ldconfig" to the REQUIRES line of mysql-server.sh and that seems > > to have fixed the problem. > > Perhaps a better solution would be to replace the REQUIRE/BEFORE rows > with a single "REQUIRE: DAEMON". What about it? Yup, since mysqld is running as root, otherwise REQUIRE: LOGIN. =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart3302210.CCzSlGS1f8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD/WhdMxEkbVFH3PQRAh9fAJwII46JHvH71A2y2nvPlF5s0luLWQCdE526 s405iHecW84k8HRLZtsT4Pk= =krDB -----END PGP SIGNATURE----- --nextPart3302210.CCzSlGS1f8-- From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 07:46:55 2006 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 A01A216A420; Thu, 23 Feb 2006 07:46:55 +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 2529E43D45; Thu, 23 Feb 2006 07:46:55 +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 5E00E11C09; Thu, 23 Feb 2006 08:46:50 +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 94647-07; Thu, 23 Feb 2006 08:46:43 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id A74181143A; Thu, 23 Feb 2006 08:46:42 +0100 (CET) From: Florent Thoumie To: freebsd-rc@freebsd.org Date: Thu, 23 Feb 2006 08:46:30 +0100 User-Agent: KMail/1.8.2 References: <200602221642.10012.lists@jnielsen.net> <43FD61ED.6050403@alexdupre.com> In-Reply-To: <43FD61ED.6050403@alexdupre.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3302210.CCzSlGS1f8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602230846.37388.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: stable@freebsd.org, Alex Dupre , John Nielsen , rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 07:46:55 -0000 --nextPart3302210.CCzSlGS1f8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 23 February 2006 08:19, Alex Dupre wrote: > John Nielsen wrote: > > I'm not entirely conversant with the new rc script syntax, but I tried > > adding "ldconfig" to the REQUIRES line of mysql-server.sh and that seems > > to have fixed the problem. > > Perhaps a better solution would be to replace the REQUIRE/BEFORE rows > with a single "REQUIRE: DAEMON". What about it? Yup, since mysqld is running as root, otherwise REQUIRE: LOGIN. =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart3302210.CCzSlGS1f8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD/WhdMxEkbVFH3PQRAh9fAJwII46JHvH71A2y2nvPlF5s0luLWQCdE526 s405iHecW84k8HRLZtsT4Pk= =krDB -----END PGP SIGNATURE----- --nextPart3302210.CCzSlGS1f8-- From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 08:01:15 2006 Return-Path: X-Original-To: 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 59D1416A420; Thu, 23 Feb 2006 08:01:15 +0000 (GMT) (envelope-from owner-freebsd-stable@freebsd.org) Received: from magnum.mistaken-identity.co.uk (slayer-of.demon.co.uk [62.49.5.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FFA643D46; Thu, 23 Feb 2006 08:01:14 +0000 (GMT) (envelope-from owner-freebsd-stable@freebsd.org) Received: from mail pickup service by magnum.mistaken-identity.co.uk with Microsoft SMTPSVC; Thu, 23 Feb 2006 08:01:08 +0000 thread-index: AcY4T03LCEXcyjsRTw+Cca0FkvEU+Q== X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Date: Thu, 23 Feb 2006 08:01:08 -0000 Message-ID: <000101c6384f$4dcd2660$fe07000a@Home.local> From: "Alex Dupre" User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: References: <200602221642.10012.lists@jnielsen.net> In-Reply-To: <200602221642.10012.lists@jnielsen.net> X-Mailer: Microsoft CDO for Exchange 2000 Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Content-Class: urn:content-classes:message Importance: normal Sender: Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Errors-To: owner-freebsd-stable@freebsd.org X-OriginalArrivalTime: 23 Feb 2006 08:01:08.0750 (UTC) FILETIME=[4DEBAAE0:01C6384F] Cc: stable@freebsd.org, rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) X-BeenThere: freebsd-rc@freebsd.org 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, 23 Feb 2006 08:01:15 -0000 John Nielsen wrote: > I'm not entirely conversant with the new rc script syntax, but I tried adding > "ldconfig" to the REQUIRES line of mysql-server.sh and that seems to have > fixed the problem. Perhaps a better solution would be to replace the REQUIRE/BEFORE rows with a single "REQUIRE: DAEMON". What about it? -- Alex Dupre _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 08:46:56 2006 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 7D57B16A422 for ; Thu, 23 Feb 2006 08:46:56 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: from andxor.it (relay.andxor.it [195.223.2.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 15EE643D45 for ; Thu, 23 Feb 2006 08:46:53 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: (qmail 32407 invoked from network); 23 Feb 2006 08:46:51 -0000 Received: from unknown (HELO ?192.168.2.5?) (192.168.2.5) by andxor.it with SMTP; 23 Feb 2006 08:46:51 -0000 Message-ID: <43FD767A.6060705@alexdupre.com> Date: Thu, 23 Feb 2006 09:46:50 +0100 From: Alex Dupre User-Agent: Thunderbird 1.5 (X11/20060115) MIME-Version: 1.0 To: Florent Thoumie References: <200602221642.10012.lists@jnielsen.net> <43FD61ED.6050403@alexdupre.com> <200602230846.37388.flz@xbsd.org> In-Reply-To: <200602230846.37388.flz@xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: John Nielsen , stable@freebsd.org, freebsd-rc@freebsd.org, rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 08:46:56 -0000 Florent Thoumie wrote: > Yup, since mysqld is running as root, otherwise REQUIRE: LOGIN. mysqld switch to user mysql after startup, so I guess it should require LOGIN. -- Alex Dupre From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 08:46:56 2006 Return-Path: X-Original-To: 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 9184F16A423 for ; Thu, 23 Feb 2006 08:46:56 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: from andxor.it (relay.andxor.it [195.223.2.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 1605743D46 for ; Thu, 23 Feb 2006 08:46:53 +0000 (GMT) (envelope-from sysadmin@alexdupre.com) Received: (qmail 32407 invoked from network); 23 Feb 2006 08:46:51 -0000 Received: from unknown (HELO ?192.168.2.5?) (192.168.2.5) by andxor.it with SMTP; 23 Feb 2006 08:46:51 -0000 Message-ID: <43FD767A.6060705@alexdupre.com> Date: Thu, 23 Feb 2006 09:46:50 +0100 From: Alex Dupre User-Agent: Thunderbird 1.5 (X11/20060115) MIME-Version: 1.0 To: Florent Thoumie References: <200602221642.10012.lists@jnielsen.net> <43FD61ED.6050403@alexdupre.com> <200602230846.37388.flz@xbsd.org> In-Reply-To: <200602230846.37388.flz@xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: John Nielsen , stable@freebsd.org, freebsd-rc@freebsd.org, rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 08:46:56 -0000 Florent Thoumie wrote: > Yup, since mysqld is running as root, otherwise REQUIRE: LOGIN. mysqld switch to user mysql after startup, so I guess it should require LOGIN. -- Alex Dupre From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 14:41:47 2006 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 E6A1D16A420; Thu, 23 Feb 2006 14:41:47 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 996D343D49; Thu, 23 Feb 2006 14:41:45 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id k1NEfbCn006138; Thu, 23 Feb 2006 06:41:39 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Alex Dupre Date: Thu, 23 Feb 2006 09:40:40 -0500 User-Agent: KMail/1.9.1 References: <200602221642.10012.lists@jnielsen.net> <200602230846.37388.flz@xbsd.org> <43FD767A.6060705@alexdupre.com> In-Reply-To: <43FD767A.6060705@alexdupre.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602230940.40652.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Cc: stable@freebsd.org, freebsd-rc@freebsd.org Subject: Re: mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder) 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, 23 Feb 2006 14:41:48 -0000 On Thursday 23 February 2006 03:46, Alex Dupre wrote: > Florent Thoumie wrote: > > Yup, since mysqld is running as root, otherwise REQUIRE: LOGIN. > > mysqld switch to user mysql after startup, so I guess it should require > LOGIN. That works here. I removed the BEFORE line and changed REQUIRE to only include LOGIN: # PROVIDE: mysql # REQUIRE: LOGIN # KEYWORD: shutdown Let me know if there are any other incantations I should test. Thanks, JN From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 15:21:34 2006 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 446FA16A420; Thu, 23 Feb 2006 15:21:34 +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 0F9BF43D62; Thu, 23 Feb 2006 15:21:33 +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 k1NFLWcO017724; Thu, 23 Feb 2006 15:21:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1NFLWaG017720; Thu, 23 Feb 2006 15:21:32 GMT (envelope-from linimon) Date: Thu, 23 Feb 2006 15:21:32 GMT From: Mark Linimon Message-Id: <200602231521.k1NFLWaG017720@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/93727: polling parameter in ifconfig statement of rc.conf not handled correct 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, 23 Feb 2006 15:21:34 -0000 Synopsis: polling parameter in ifconfig statement of rc.conf not handled correct Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Thu Feb 23 15:20:31 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=93727 From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 19:27:11 2006 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 0B7DA16A420 for ; Thu, 23 Feb 2006 19:27:11 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BB8F43D48 for ; Thu, 23 Feb 2006 19:27:10 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 6B7681141E; Thu, 23 Feb 2006 20:27:07 +0100 (CET) Date: Thu, 23 Feb 2006 20:27:07 +0100 From: "Simon L. Nielsen" To: freebsd-rc@FreeBSD.org Message-ID: <20060223192706.GA986@zaphod.nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Problem with new localpkg startup in jails on 6.1 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, 23 Feb 2006 19:27:11 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, I ran into a problem on a 6.1-BETA1 system running apache22 inside a jail. The symptom is that when starting the jail (via the jail rc.d script) apache doesn't start even though apache22_enable=3D"YES" is set in the jail rc.conf. It starts fine if run the apache22 rc.d script manually inside the jail. The problem seems to be that in a jail there is no "mountcritlocal" rc.d script (since it's marked nojail) so that messes up the new start with the "early_late_divider". When I set early_late_divider=3D"var" in the jail rc.conf file everything works as expected. I'm not really sure what the right fix is, though the hack is obviously: if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] then early_late_divider=3D"var" fi Or something like that. I hope somebody else have a better solution :-). --=20 Simon L. Nielsen --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD/gyKh9pcDSc1mlERAlAzAKDFNcgdfFgX59yDgFsE/OdjdjP84ACcDNj7 JJh+nJUFtrCEBODX6lrqem4= =26w1 -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 20:23:55 2006 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 5388916A420 for ; Thu, 23 Feb 2006 20:23:55 +0000 (GMT) (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 0A10243D6E for ; Thu, 23 Feb 2006 20:23:49 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 34481 invoked by uid 399); 23 Feb 2006 20:23:47 -0000 Received: from localhost (HELO ?192.168.0.6?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 23 Feb 2006 20:23:47 -0000 Message-ID: <43FE19C6.6060005@FreeBSD.org> Date: Thu, 23 Feb 2006 12:23:34 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: "Simon L. Nielsen" References: <20060223192706.GA986@zaphod.nitro.dk> In-Reply-To: <20060223192706.GA986@zaphod.nitro.dk> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: Problem with new localpkg startup in jails on 6.1 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, 23 Feb 2006 20:23:55 -0000 Simon L. Nielsen wrote: > Hey, > > I ran into a problem on a 6.1-BETA1 system running apache22 inside a > jail. Please try the /etc/rc file from HEAD, and let us know if it works for you. If it does, I'll make an MFC request. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 21:01:20 2006 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 4BF8E16A420; Thu, 23 Feb 2006 21:01:20 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id D78F843D55; Thu, 23 Feb 2006 21:01:19 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 5B60F1141E; Thu, 23 Feb 2006 22:01:17 +0100 (CET) Date: Thu, 23 Feb 2006 22:01:17 +0100 From: "Simon L. Nielsen" To: Doug Barton Message-ID: <20060223210116.GB986@zaphod.nitro.dk> References: <20060223192706.GA986@zaphod.nitro.dk> <43FE19C6.6060005@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline In-Reply-To: <43FE19C6.6060005@FreeBSD.org> User-Agent: Mutt/1.5.11 Cc: freebsd-rc@FreeBSD.org Subject: Re: Problem with new localpkg startup in jails on 6.1 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, 23 Feb 2006 21:01:20 -0000 --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006.02.23 12:23:34 -0800, Doug Barton wrote: > Simon L. Nielsen wrote: > > Hey, > >=20 > > I ran into a problem on a 6.1-BETA1 system running apache22 inside a > > jail. =20 >=20 > Please try the /etc/rc file from HEAD, and let us know if it works for yo= u. > If it does, I'll make an MFC request. Ah, I had missed that commit. Yes, rev. 1.339 does fix the problem. Thanks! --=20 Simon L. Nielsen --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD/iKch9pcDSc1mlERAvW4AJ4kcFsnnXB62u7iKmt/n1XQsNt2DwCfeFXb JeGft0923vGV3tZtfTehG/w= =w+ct -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc-- From owner-freebsd-rc@FreeBSD.ORG Fri Feb 24 04:21:45 2006 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 4CCBD16A420 for ; Fri, 24 Feb 2006 04:21:45 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from mail07.powweb.com (mail07.powweb.com [66.152.97.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id F061643D46 for ; Fri, 24 Feb 2006 04:21:44 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.vulpes (24-119-205-114.cpe.cableone.net [24.119.205.114]) by mail07.powweb.com (Postfix) with ESMTP id 7B68014DB97 for ; Thu, 23 Feb 2006 20:21:42 -0800 (PST) Date: Thu, 23 Feb 2006 22:32:15 -0600 From: Vulpes Velox To: freebsd-rc@freebsd.org Message-ID: <20060223223215.40c1945a@vixen42.vulpes> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MP_y5bXSNKjWDK8OGX5ayeZd2v Subject: Improvements to the ipfw rc scripts. 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: Fri, 24 Feb 2006 04:21:45 -0000 --MP_y5bXSNKjWDK8OGX5ayeZd2v Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Here are some patches that add in the ability to save current ipfw rules and recall them. It saves it to /var/db/ipfw/. A save with .6 after it is for ip6fw. By default last is used. A name can be specified as well. ipfw save moose will create /var/db/ipfw/moose. ipfw start moose will start ipfw using /var/db/ipfw/moose. --MP_y5bXSNKjWDK8OGX5ayeZd2v Content-Type: text/x-patch; name=rc.d_ip6fw.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.d_ip6fw.patch 17a18,27 > extra_commands="save" > save_cmd="ipfw_save" > > # Gets the name of the save to use. > if [ ! -z $2 ]; then > savename="$2" > usingsave="yes" > else > savename="last" > fi 31a42,48 > ipfw_save() > { > # Saves the firewall rules to /var/db/ipfw/$savename > [ ! -d /var/db/ipfw ] && mkdir /var/db/ipfw && chmod go-rwx /var/db/ipfw > ipfw list | awk '{print "${fwcmd} add " $0 }' > /var/db/ipfw/$savename.6 > } > 33a51,58 > # Make sure the save file exists if one is specified. > if [ ! -z $usingsave ]; then > if [ ! -f "/var/db/ipfw/$savename.6" ]; then > echo "Specified save does not exist" > exit 1 > fi > fi > 42c67 < . "${ipv6_firewall_script}" --- > . "${ipv6_firewall_script}" $savename --MP_y5bXSNKjWDK8OGX5ayeZd2v Content-Type: text/x-patch; name=rc.d_ipfw.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.d_ipfw.patch 18a19,29 > extra_commands="save" > save_cmd="ipfw_save" > > > #gets the name of the save to use > if [ ! -z $2 ]; then > savename="$2" > usingsave="yes" > else > savename="last" > fi 31a43,49 > ipfw_save() > { > # Saves the firewall rules to /var/db/ipfw/$savename > [ ! -d /var/db/ipfw ] && mkdir /var/db/ipfw && chmod go-rwx /var/db/ipfw > ipfw list | awk '{print "${fwcmd} add " $0 }' > /var/db/ipfw/$savename > } > 33a52,59 > # Make sure the save file exists if one is specified > if [ ! -z $usingsave ]; then > if [ ! -f "/var/db/ipfw/$savename" ]; then > echo "Specified save does not exist" > exit 1 > fi > fi > 38c64 < . "${firewall_script}" --- > . "${firewall_script}" $savename --MP_y5bXSNKjWDK8OGX5ayeZd2v Content-Type: text/x-patch; name=rc.firewall.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.firewall.patch --- /usr/src/etc/rc.firewall Sun Nov 2 07:31:44 2003 +++ /etc/rc.firewall Sun Feb 19 09:08:52 2006 @@ -143,6 +143,17 @@ setup_loopback ${fwcmd} add 65000 pass all from any to any ;; + +[Ll][Aa][Ss][Tt]) + # Gets the name of the save to use. + if [ ! -z $1 ]; then + savename="$1" + else + savename="last" + fi + + . /var/db/ipfw/$savename + ;; [Cc][Ll][Ii][Ee][Nn][Tt]) ############ --MP_y5bXSNKjWDK8OGX5ayeZd2v Content-Type: text/x-patch; name=rc.firewall6.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.firewall6.patch --- /usr/src/etc/rc.firewall6 Sun Dec 4 08:48:05 2005 +++ /etc/rc.firewall6 Sun Feb 19 09:13:20 2006 @@ -105,6 +105,17 @@ ${fw6cmd} add 65000 pass all from any to any ;; +[Ll][Aa][Ss][Tt]) + # Gets the name of the save to use. + if [ ! -z $1 ]; then + savename="$1" + else + savename="last" + fi + + . /var/db/ipfw/$savename.6 + ;; + [Cc][Ll][Ii][Ee][Nn][Tt]) ############ # This is a prototype setup that will protect your system somewhat --MP_y5bXSNKjWDK8OGX5ayeZd2v-- From owner-freebsd-rc@FreeBSD.ORG Sat Feb 25 03:16:43 2006 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 DC43016A420 for ; Sat, 25 Feb 2006 03:16:43 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FFB343D48 for ; Sat, 25 Feb 2006 03:16:42 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id k1P3GeHx073407 for ; Fri, 24 Feb 2006 21:16:41 -0600 (CST) (envelope-from sean-freebsd@farley.org) Date: Fri, 24 Feb 2006 21:16:40 -0600 (CST) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: freebsd-rc@FreeBSD.org In-Reply-To: <200602010110.k111A2iq022676@freefall.freebsd.org> Message-ID: <20060224210917.H34499@thor.farley.org> References: <200602010110.k111A2iq022676@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1908771063-1140837400=:34499" Cc: Subject: Re: conf/92654: Setting moused_nondefault_enable to NO throws WARNING 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, 25 Feb 2006 03:16:44 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1908771063-1140837400=:34499 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE I wrote a patch to fix a warning displayed if both moused_enable and moused_nondefault_enable are set to "NO". The PR is conf/92654[1] which contains a patch (also found here[2]). Does this patch look good to everyone? It works for me. :) Se=E1n 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dconf/92654 2. http://www.farley.org/freebsd/tmp/PR/92654/moused.diff --=20 sean-freebsd@farley.org --0-1908771063-1140837400=:34499-- From owner-freebsd-rc@FreeBSD.ORG Sat Feb 25 06:39:52 2006 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 DA6C416A420; Sat, 25 Feb 2006 06:39:52 +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 8E81043D48; Sat, 25 Feb 2006 06:39:52 +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 k1P6dqMu064583; Sat, 25 Feb 2006 06:39:52 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1P6dqpo064579; Sat, 25 Feb 2006 06:39:52 GMT (envelope-from linimon) Date: Sat, 25 Feb 2006 06:39:52 GMT From: Mark Linimon Message-Id: <200602250639.k1P6dqpo064579@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/93815: [patch] Adds in the ability to save ipfw rules to rc.d/ipfw and rc.d/ip6fw. 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, 25 Feb 2006 06:39:53 -0000 Old Synopsis: Adds in the ability to save ipfw rules to rc.d/ipfw and rc.d/ip6fw. New Synopsis: [patch] Adds in the ability to save ipfw rules to rc.d/ipfw and rc.d/ip6fw. Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Sat Feb 25 06:39:16 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=93815 From owner-freebsd-rc@FreeBSD.ORG Sat Feb 25 13:22:34 2006 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 2BA7416A420 for ; Sat, 25 Feb 2006 13:22:34 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from mailhub04.unibe.ch (mailhub04.unibe.ch [130.92.9.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F07543D45 for ; Sat, 25 Feb 2006 13:22:33 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub01-eth0.unibe.ch [130.92.254.65]) by mailhub04.unibe.ch (Postfix) with ESMTP id 28BC211B94; Sat, 25 Feb 2006 14:22:32 +0100 (CET) Received: from mailhub04.unibe.ch ([130.92.9.71]) by localhost (scanhub01.unibe.ch [130.92.254.65]) (amavisd-new, port 10024) with LMTP id 30616-03-68; Sat, 25 Feb 2006 14:22:30 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub04.unibe.ch (Postfix) with ESMTP id 5B8951C242; Sat, 25 Feb 2006 14:22:30 +0100 (CET) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id k1PDMU8Z014304; Sat, 25 Feb 2006 14:22:30 +0100 (MET) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id k1PDMQov027418; Sat, 25 Feb 2006 14:22:26 +0100 (MET) Date: Sat, 25 Feb 2006 14:22:26 +0100 From: Tobias Roth To: Brooks Davis Message-ID: <20060225132226.GA27397@droopy.unibe.ch> References: <20060221023750.GA32185@odin.ac.hmc.edu> <20060221045324.8717645048@ptavv.es.net> <20060221075140.GA9101@droopy.unibe.ch> <20060221212818.GA22713@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060221212818.GA22713@odin.ac.hmc.edu> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in 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, 25 Feb 2006 13:22:34 -0000 On Tue, Feb 21, 2006 at 01:28:18PM -0800, Brooks Davis wrote: > > Possible improvements: > > 1) change dhclient to accept a timeout on the commandline > > This would be a useful addon. Actually, I'd like to see both the option > to specify a shorter one and the option to keep trying forever since > that's what's wanted in some scenerios. I've implemented the two switches -i and -t, that override the variables from dhclient.conf 'retry' and 'timeout'. The patch can be found here: http://fsck.ch/dhclient_timeouts.diff As it looks, the OpenBSD dhclient tries to be consistent with the naming of the switches with isc-dhclient, as much as it's possible (ie -lf has been changed to -l). Since -r is alrteady taken in isc-dhcp (release current lease and exit), I opted for -i to specify the retry interval. I'd also like to do a switch that tells dhclient to only try once, and then exit, similar to the -1 of isc-dhclient. I'll look into it later. What do you mean with "keep trying forever"? As I see it, dhclient already tries forever, as it never exists. Do short enough timeouts already cover your scenario? Thanks, Tobias