From owner-freebsd-rc@FreeBSD.ORG Sun May 31 18:21:52 2009 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E688106566B; Sun, 31 May 2009 18:21:52 +0000 (UTC) (envelope-from rick@snowhite.cis.uoguelph.ca) Received: from skerryvore.cs.uoguelph.ca (skerryvore.cs.uoguelph.ca [131.104.94.204]) by mx1.freebsd.org (Postfix) with ESMTP id 2E23B8FC0A; Sun, 31 May 2009 18:21:51 +0000 (UTC) (envelope-from rick@snowhite.cis.uoguelph.ca) Received: from snowhite.cis.uoguelph.ca (snowhite.cis.uoguelph.ca [131.104.48.1]) by skerryvore.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id n4VILooI011339; Sun, 31 May 2009 14:21:50 -0400 Received: (from rick@localhost) by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id OAA47980; Sun, 31 May 2009 14:21:38 -0400 (EDT) Date: Sun, 31 May 2009 14:21:38 -0400 (EDT) From: Rick Macklem Message-Id: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> To: dougb@FreeBSD.org X-Scanned-By: MIMEDefang 2.63 on 131.104.94.221 Cc: rwatson@FreeBSD.org, rc@FreeBSD.org, kib@FreeBSD.org Subject: Re: rc scripts for the new experimental nfs subsystem 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: Sun, 31 May 2009 18:21:52 -0000 [good stuff snipped] > It sounds like what you really want to do is have nfsd REQUIRE nfsuserd. > > I'll only comment on a few things, the rest looks good. Thanks a lot for the review. I've used your version of nfsd, which I think is more readable and moved the sig_stop lines up like you suggested. I've added nfsuserd to the REQUIRE: line in nfsd and also in nfscbd. So, I think it's ready for a commit. (I've attached the diff again, just in case you want to take another look.) Thanks again, rick --- diff -u of rc scripts --- diff -u -r -N rc.d.sav/mountd rc.d/mountd --- rc.d.sav/mountd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/mountd 2009-05-30 20:25:04.000000000 -0400 @@ -37,6 +37,13 @@ fi fi + # If nfsv4_server_enable is yes, force use of the experimental + # server + # + if checkyesno nfsv4_server_enable; then + rc_flags="-e ${rc_flags}" + fi + if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi diff -u -r -N rc.d.sav/nfscbd rc.d/nfscbd --- rc.d.sav/nfscbd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfscbd 2009-05-31 14:01:20.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfscbd +# REQUIRE: NETWORKING nfsuserd +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfscbd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" +sig_stop="USR1" + +load_rc_config $name + +run_rc_command "$1" diff -u -r -N rc.d.sav/nfsd rc.d/nfsd --- rc.d.sav/nfsd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/nfsd 2009-05-30 20:31:23.000000000 -0400 @@ -4,7 +4,7 @@ # # PROVIDE: nfsd -# REQUIRE: mountd hostname gssd +# REQUIRE: mountd hostname gssd nfsuserd # KEYWORD: nojail shutdown . /etc/rc.subr @@ -14,14 +14,33 @@ command="/usr/sbin/${name}" load_rc_config $name -command_args="${nfs_server_flags}" start_precmd="nfsd_precmd" sig_stop="USR1" nfsd_precmd() { - if ! sysctl vfs.nfsrv >/dev/null 2>&1; then - force_depend nfsserver || return 1 + if checkyesno nfsv4_server_enable; then + # If nfsv4_server_enable is yes, force use + # of the experimental server + # + rc_flags="-e ${nfs_server_flags}" + + if ! checkyesno nfsuserd_enable && \ + ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 + then + force_depend nfsuserd || return 1 + fi + else + rc_flags="${nfs_server_flags}" + + if ! sysctl vfs.nfsrv >/dev/null 2>&1; then + force_depend nfsserver || return 1 + fi + + if checkyesno nfs_reserved_port_only; then + echo 'NFS on reserved port only=YES' + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null + fi fi if ! checkyesno rpcbind_enable && \ @@ -35,11 +54,6 @@ then force_depend mountd || return 1 fi - - if checkyesno nfs_reserved_port_only; then - echo 'NFS on reserved port only=YES' - sysctl vfs.nfsrv.nfs_privport=1 > /dev/null - fi return 0 } diff -u -r -N rc.d.sav/nfsuserd rc.d/nfsuserd --- rc.d.sav/nfsuserd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfsuserd 2009-05-30 20:32:45.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfsuserd +# REQUIRE: NETWORKING +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfsuserd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" +sig_stop="USR1" + +load_rc_config $name + +run_rc_command "$1" diff -u -r -N rc.d.sav/rc.conf rc.d/rc.conf --- rc.d.sav/rc.conf 2009-05-31 14:13:38.000000000 -0400 +++ rc.d/rc.conf 2009-05-31 14:12:46.000000000 -0400 @@ -311,6 +311,11 @@ rpc_ypupdated_enable="NO" # Run if NIS master and SecureRPC (or NO). keyserv_enable="NO" # Run the SecureRPC keyserver (or NO). keyserv_flags="" # Flags to keyserv (if enabled). +nfsv4_server_enable="NO" # Enable support for NFSv4 +nfscbd_enable="NO" # NFSv4 client side callback daemon +nfscbd_flags="" # Flags for nfscbd +nfsuserd_enable="NO" # NFSv4 user/group name mapping daemon +nfsuserd_flags="" # Flags for nfsuserd ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). From owner-freebsd-rc@FreeBSD.ORG Sun May 31 18:34:28 2009 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0853106564A for ; Sun, 31 May 2009 18:34:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4A95D8FC16 for ; Sun, 31 May 2009 18:34:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 877 invoked by uid 399); 31 May 2009 18:34:25 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 31 May 2009 18:34:25 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A22CDAF.6050506@FreeBSD.org> Date: Sun, 31 May 2009 11:34:23 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: Rick Macklem References: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> In-Reply-To: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: rwatson@FreeBSD.org, rc@FreeBSD.org, kib@FreeBSD.org Subject: Re: rc scripts for the new experimental nfs subsystem 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: Sun, 31 May 2009 18:34:29 -0000 Rick Macklem wrote: > [good stuff snipped] >> It sounds like what you really want to do is have nfsd REQUIRE nfsuserd. >> >> I'll only comment on a few things, the rest looks good. > > Thanks a lot for the review. I've used your version of nfsd, which I think > is more readable and moved the sig_stop lines up like you suggested. I've > added nfsuserd to the REQUIRE: line in nfsd and also in nfscbd. Looks good to me. Thanks for taking the time to get this right before committing it. :) Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Sun May 31 20:04:22 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00B00106566C for ; Sun, 31 May 2009 20:04:22 +0000 (UTC) (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 7A50C8FC08 for ; Sun, 31 May 2009 20:04:21 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.3/8.14.3) with ESMTP id n4VJkdvj020251; Sun, 31 May 2009 23:46:39 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 31 May 2009 23:46:39 +0400 (MSD) From: Dmitry Morozovsky To: Doug Barton In-Reply-To: <4A22CFA1.3050408@FreeBSD.org> Message-ID: References: <200905301938.n4UJcpbF017191@svn.freebsd.org> <4A22CFA1.3050408@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (woozle.rinet.ru [0.0.0.0]); Sun, 31 May 2009 23:46:39 +0400 (MSD) Cc: Pawel Jakub Dawidek , freebsd-rc@freebsd.org Subject: Re: svn commit: r193112 - head/etc/rc.d 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: Sun, 31 May 2009 20:04:22 -0000 On Sun, 31 May 2009, Doug Barton wrote: DB> Dmitry Morozovsky wrote: DB> > Doug, DB> > DB> > On Sat, 30 May 2009, Doug Barton wrote: DB> > DB> > DB> Author: dougb DB> > DB> Date: Sat May 30 19:38:51 2009 DB> > DB> New Revision: 193112 DB> > DB> URL: http://svn.freebsd.org/changeset/base/193112 DB> > DB> DB> > DB> Log: DB> > DB> As previously advertised, remove this script prior to the 8.0 branch. DB> > DB> > Was there an agreement what should one do with dumping to gmirror (see DB> > sbin/geom/class/mirror/gmirror.8) ? DB> DB> I'm not familiar with that issue, but it sounds like something that DB> needs its own rc.d script. If someone who knows what is supposed to DB> happen wants to write something up and send it to the freebsd-rc@ list DB> I'll be glad to help review it. Something like (checks should be added, yeah) #!/bin/sh # # $FreeBSD$ # # BEFORE: savecore # PROVIDE: gmirror-savecore # KEYWORD: nojail . /etc/rc.subr name="gmirror_savecore" start_cmd="gmsavecore_start" stop_cmd=":" gmsavecore_start() { gmirror configure -b prefer /dev/dumpdev } load_rc_config $name run_rc_command "$1" possibly? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 06:08:34 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6458106567C for ; Mon, 1 Jun 2009 06:08:34 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 783D08FC1E for ; Mon, 1 Jun 2009 06:08:34 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 30987 invoked by uid 399); 1 Jun 2009 06:08:29 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 1 Jun 2009 06:08:29 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A23705C.3020603@FreeBSD.org> Date: Sun, 31 May 2009 23:08:28 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: Dmitry Morozovsky References: <200905301938.n4UJcpbF017191@svn.freebsd.org> <4A22CFA1.3050408@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Pawel Jakub Dawidek , freebsd-rc@freebsd.org Subject: Re: svn commit: r193112 - head/etc/rc.d 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, 01 Jun 2009 06:08:35 -0000 Dmitry Morozovsky wrote: > On Sun, 31 May 2009, Doug Barton wrote: > > DB> Dmitry Morozovsky wrote: > DB> > Doug, > DB> > > DB> > On Sat, 30 May 2009, Doug Barton wrote: > DB> > > DB> > DB> Author: dougb > DB> > DB> Date: Sat May 30 19:38:51 2009 > DB> > DB> New Revision: 193112 > DB> > DB> URL: http://svn.freebsd.org/changeset/base/193112 > DB> > DB> > DB> > DB> Log: > DB> > DB> As previously advertised, remove this script prior to the 8.0 branch. > DB> > > DB> > Was there an agreement what should one do with dumping to gmirror (see > DB> > sbin/geom/class/mirror/gmirror.8) ? > DB> > DB> I'm not familiar with that issue, but it sounds like something that > DB> needs its own rc.d script. If someone who knows what is supposed to > DB> happen wants to write something up and send it to the freebsd-rc@ list > DB> I'll be glad to help review it. > > Something like (checks should be added, yeah) This is fine, but for consistency with the other stuff in rc.d the name of the script, the value of $name, and the PROVIDE should all be the same. I would name it something like gmsc and in etc/defaults/rc.conf (and probably in the script itself) add a comment indicating what it's for. Not sure what you mean by "checks should be added," I'm not familiar with gmirror at all. But it looks like you're on the right track, yes. Doug > #!/bin/sh > # > # $FreeBSD$ > # > > # BEFORE: savecore > # PROVIDE: gmirror-savecore > # KEYWORD: nojail > > . /etc/rc.subr > > name="gmirror_savecore" > start_cmd="gmsavecore_start" > stop_cmd=":" > > gmsavecore_start() > { > gmirror configure -b prefer /dev/dumpdev > } > > load_rc_config $name > run_rc_command "$1" > > possibly? > -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 07:28:16 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC23C106564A; Mon, 1 Jun 2009 07:28:16 +0000 (UTC) (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 E60378FC14; Mon, 1 Jun 2009 07:28:15 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.3/8.14.3) with ESMTP id n517SECx043426; Mon, 1 Jun 2009 11:28:14 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 1 Jun 2009 11:28:14 +0400 (MSD) From: Dmitry Morozovsky To: Doug Barton In-Reply-To: <4A23705C.3020603@FreeBSD.org> Message-ID: References: <200905301938.n4UJcpbF017191@svn.freebsd.org> <4A22CFA1.3050408@FreeBSD.org> <4A23705C.3020603@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-834018739-548216712-1243841294=:42245" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (woozle.rinet.ru [0.0.0.0]); Mon, 01 Jun 2009 11:28:14 +0400 (MSD) Cc: Pawel Jakub Dawidek , freebsd-rc@FreeBSD.org Subject: Re: svn commit: r193112 - head/etc/rc.d 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, 01 Jun 2009 07:28:17 -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. ---834018739-548216712-1243841294=:42245 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 31 May 2009, Doug Barton wrote: DB> > DB> > DB> As previously advertised, remove this script prior to the 8.0 branch. DB> > DB> > DB> > DB> > Was there an agreement what should one do with dumping to gmirror (see DB> > DB> > sbin/geom/class/mirror/gmirror.8) ? DB> > DB> DB> > DB> I'm not familiar with that issue, but it sounds like something that DB> > DB> needs its own rc.d script. If someone who knows what is supposed to DB> > DB> happen wants to write something up and send it to the freebsd-rc@ list DB> > DB> I'll be glad to help review it. DB> > DB> > Something like (checks should be added, yeah) DB> DB> This is fine, but for consistency with the other stuff in rc.d the DB> name of the script, the value of $name, and the PROVIDE should all be DB> the same. I would name it something like gmsc and in DB> etc/defaults/rc.conf (and probably in the script itself) add a comment DB> indicating what it's for. DB> DB> Not sure what you mean by "checks should be added," I'm not familiar DB> with gmirror at all. But it looks like you're on the right track, yes. Well, I'm ton very familiar with rc.d scripts rules, so I suppose I missed some _rc.d_ checks, but corrected patch is attached. I'm not sure where second part of gmirror configuring process belong though... -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ ---834018739-548216712-1243841294=:42245 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=gmsc.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=gmsc.patch SW5kZXg6IGRlZmF1bHRzL3JjLmNvbmYNCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT0NClJDUyBmaWxlOiAvaG9tZS9uY3ZzL3NyYy9ldGMvZGVmYXVsdHMvcmMu Y29uZix2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzU2DQpkaWZmIC11IC1y MS4zNTYgcmMuY29uZg0KLS0tIGRlZmF1bHRzL3JjLmNvbmYJMjIgTWF5IDIw MDkgMTM6NTY6MTYgLTAwMDAJMS4zNTYNCisrKyBkZWZhdWx0cy9yYy5jb25m CTEgSnVuIDIwMDkgMDc6MjU6NTIgLTAwMDANCkBAIC0yNzYsNiArMjc2LDcg QEANCiANCiByd2hvZF9lbmFibGU9Ik5PIgkJIyBSdW4gdGhlIHJ3aG8gZGFl bW9uIChvciBOTykuDQogcndob2RfZmxhZ3M9IiIJCQkjIEZsYWdzIGZvciBy d2hvZA0KK3J3aG9kX2RlbGF5PSIwIgkJCSMgRGVsYXkgaW4gc2Vjb25kcyBi ZWZvcmUgc3RhcnRpbmcgcndob2QNCiByYXJwZF9lbmFibGU9Ik5PIgkJIyBS dW4gcmFycGQgKG9yIE5PKS4NCiByYXJwZF9mbGFncz0iLWEiCQkjIEZsYWdz IHRvIHJhcnBkLg0KIGJvb3RwYXJhbWRfZW5hYmxlPSJOTyIJCSMgUnVuIGJv b3RwYXJhbWQgKG9yIE5PKS4NCkBAIC01NDYsOCArNTQ3LDcgQEANCiBkdW1w ZGV2PSJBVVRPIgkJIyBEZXZpY2UgdG8gY3Jhc2hkdW1wIHRvIChkZXZpY2Ug bmFtZSwgQVVUTywgb3IgTk8pLg0KIGR1bXBkaXI9Ii92YXIvY3Jhc2giCSMg RGlyZWN0b3J5IHdoZXJlIGNyYXNoIGR1bXBzIGFyZSB0byBiZSBzdG9yZWQN CiBzYXZlY29yZV9mbGFncz0iIgkjIFVzZWQgaWYgZHVtcGRldiBpcyBlbmFi bGVkIGFib3ZlLCBhbmQgcHJlc2VudC4NCi1jcmFzaGluZm9fZW5hYmxlPSJZ RVMiCSMgQXV0b21hdGljYWxseSBnZW5lcmF0ZSBjcmFzaCBkdW1wIHN1bW1h cnkuDQotY3Jhc2hpbmZvX3Byb2dyYW09Ii91c3Ivc2Jpbi9jcmFzaGluZm8i CSMgU2NyaXB0IHRvIGdlbmVyYXRlIGNyYXNoIGR1bXAgc3VtbWFyeS4NCitn bXNjX2VuYWJsZT0iTk8iCSMgSWYgZ21pcnJvciBpcyB1c2VkIGZvciBkdW1w cywgcHJlcGFyZSBpdCBmb3Igc2F2ZWNvcmUNCiBxdW90YV9lbmFibGU9Ik5P IgkjIHR1cm4gb24gcXVvdGFzIG9uIHN0YXJ0dXAgKG9yIE5PKS4NCiBjaGVj a19xdW90YXM9IllFUyIJIyBDaGVjayBxdW90YXMgb24gc3RhcnR1cCAob3Ig Tk8pLg0KIHF1b3Rhb25fZmxhZ3M9Ii1hIgkjIFR1cm4gcXVvdGFzIG9uIGZv ciBhbGwgZmlsZSBzeXN0ZW1zIChpZiBlbmFibGVkKQ0KSW5kZXg6IHJjLmQv TWFrZWZpbGUNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAv aG9tZS9uY3ZzL3NyYy9ldGMvcmMuZC9NYWtlZmlsZSx2DQpyZXRyaWV2aW5n IHJldmlzaW9uIDEuOTcNCmRpZmYgLXUgLXIxLjk3IE1ha2VmaWxlDQotLS0g cmMuZC9NYWtlZmlsZQkzMCBNYXkgMjAwOSAxOTozODo1MSAtMDAwMAkxLjk3 DQorKysgcmMuZC9NYWtlZmlsZQkxIEp1biAyMDA5IDA3OjI1OjUyIC0wMDAw DQpAQCAtMTEsNyArMTEsNyBAQA0KIAlkbWVzZyBkdW1wb24gXA0KIAllbmNz d2FwIFwNCiAJZnNjayBmdHAtcHJveHkgZnRwZCBcDQotCWdiZGUgZ2VsaSBn ZWxpMiBnc3NkIFwNCisJZ2JkZSBnZWxpIGdlbGkyIGdtc2MgZ3NzZCBcDQog CWhjc2VjZCBcDQogCWhvc3RhcGQgaG9zdGlkIGhvc3RuYW1lIFwNCiAJaW5l dGQgaW5pdHJhbmRvbSBcDQpJbmRleDogcmMuZC9nbXNjDQo9PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09DQpSQ1MgZmlsZTogcmMuZC9nbXNjDQpkaWZmIC1OIHJj LmQvZ21zYw0KLS0tIC9kZXYvbnVsbAkxIEphbiAxOTcwIDAwOjAwOjAwIC0w MDAwDQorKysgcmMuZC9nbXNjCTEgSnVuIDIwMDkgMDc6MjU6NTIgLTAwMDAN CkBAIC0wLDAgKzEsMjIgQEANCisjIS9iaW4vc2gNCisjDQorIyAkRnJlZUJT RCQNCisjDQorDQorIyBCRUZPUkU6IHNhdmVjb3JlDQorIyBQUk9WSURFOiBn bXNjDQorIyBLRVlXT1JEOiBub2phaWwNCisNCisuIC9ldGMvcmMuc3Vicg0K Kw0KK25hbWU9Imdtc2MiDQorc3RhcnRfY21kPSJnbXNjX3N0YXJ0Ig0KK3N0 b3BfY21kPSI6Ig0KKw0KK2dtc2F2ZWNvcmVfc3RhcnQoKQ0KK3sNCisJZ21p cnJvciBjb25maWd1cmUgLWIgcHJlZmVyICR7ZHVtcGRldn0NCit9DQorDQor bG9hZF9yY19jb25maWcgJG5hbWUNCitydW5fcmNfY29tbWFuZCAiJDEiDQo= ---834018739-548216712-1243841294=:42245-- From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 08:38:53 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77E59106566C; Mon, 1 Jun 2009 08:38:53 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206192061.chello.pl [87.206.192.61]) by mx1.freebsd.org (Postfix) with ESMTP id B247C8FC15; Mon, 1 Jun 2009 08:38:52 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E5B0245CD8; Mon, 1 Jun 2009 10:06:57 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id AD7CB456AB; Mon, 1 Jun 2009 10:06:43 +0200 (CEST) Date: Mon, 1 Jun 2009 10:06:46 +0200 From: Pawel Jakub Dawidek To: Dmitry Morozovsky Message-ID: <20090601080646.GB1542@garage.freebsd.pl> References: <200905301938.n4UJcpbF017191@svn.freebsd.org> <4A22CFA1.3050408@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZoaI/ZTpAVc4A5k6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Doug Barton , freebsd-rc@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: svn commit: r193112 - head/etc/rc.d 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, 01 Jun 2009 08:38:53 -0000 --ZoaI/ZTpAVc4A5k6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 31, 2009 at 11:46:39PM +0400, Dmitry Morozovsky wrote: > On Sun, 31 May 2009, Doug Barton wrote: >=20 > DB> Dmitry Morozovsky wrote: > DB> > Doug, > DB> >=20 > DB> > On Sat, 30 May 2009, Doug Barton wrote: > DB> >=20 > DB> > DB> Author: dougb > DB> > DB> Date: Sat May 30 19:38:51 2009 > DB> > DB> New Revision: 193112 > DB> > DB> URL: http://svn.freebsd.org/changeset/base/193112 > DB> > DB>=20 > DB> > DB> Log: > DB> > DB> As previously advertised, remove this script prior to the 8.0= branch. > DB> >=20 > DB> > Was there an agreement what should one do with dumping to gmirror (= see=20 > DB> > sbin/geom/class/mirror/gmirror.8) ? > DB>=20 > DB> I'm not familiar with that issue, but it sounds like something that > DB> needs its own rc.d script. If someone who knows what is supposed to > DB> happen wants to write something up and send it to the freebsd-rc@ list > DB> I'll be glad to help review it. >=20 > Something like (checks should be added, yeah) >=20 > #!/bin/sh > # > # $FreeBSD$ > # >=20 > # BEFORE: savecore > # PROVIDE: gmirror-savecore > # KEYWORD: nojail >=20 > . /etc/rc.subr >=20 > name=3D"gmirror_savecore" > start_cmd=3D"gmsavecore_start" > stop_cmd=3D":" >=20 > gmsavecore_start() > { > gmirror configure -b prefer /dev/dumpdev > } >=20 > load_rc_config $name > run_rc_command "$1" >=20 > possibly? It's not that simple... First you have to remember previous balance algorithm and recover it once dumping crash dump is done. You also have to check if dumpdev is placed somewhere on a gmirror provider, which is not that simple, unfortunately. Imagine your dump partition is called /dev/label/dump and there is a long way to gmirror provider: label/dump -> mirror/root0s1b -> mirror/root0s1 -> mirror/root0 You can't just call 'gmirror configure -b prefer /dev/label/dump'. I'm happy to review another patch, but I don't really have any bright idea of how this should be implemented:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ZoaI/ZTpAVc4A5k6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFKI4wWForvXbEpPzQRAtlnAJ953a3o8UZrK57x5eJqHoKHOdHxbQCg8ICM ZjIYwj9rl6E2vKu5DmyGnTw= =YC9W -----END PGP SIGNATURE----- --ZoaI/ZTpAVc4A5k6-- From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 11:06:59 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F48B10656D8 for ; Mon, 1 Jun 2009 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6717B8FC24 for ; Mon, 1 Jun 2009 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n51B6xvP021219 for ; Mon, 1 Jun 2009 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n51B6w0e021215 for freebsd-rc@FreeBSD.org; Mon, 1 Jun 2009 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Jun 2009 11:06:58 GMT Message-Id: <200906011106.n51B6w0e021215@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/134918 rc rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132766 rc wait_for_pids() in /etc/rc.subr is dull. o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/120228 rc [zfs] [patch] Split ZFS volume startup / ease ZFS swap o conf/120194 rc [patch] UFS volumes on ZVOLs cannot be fsck'd at boot o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 57 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 12:14:12 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49C7A106567C for ; Mon, 1 Jun 2009 12:14:12 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: from web56403.mail.re3.yahoo.com (web56403.mail.re3.yahoo.com [216.252.111.82]) by mx1.freebsd.org (Postfix) with SMTP id 058AF8FC14 for ; Mon, 1 Jun 2009 12:14:11 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: (qmail 32412 invoked by uid 60001); 1 Jun 2009 12:14:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1243858451; bh=cxlUsznBCU9CDA9p6za0n1I+Gj12PsPVc/uD1pzk3fo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=Pg75lLH7xefuy2KgGAwHxjlLwPEhuDp7b6wbC5yMHFGpFWyRFHALnuMczZvUUTU2jkJ0mnKgPWd+yRLO61fpXKYNrMYvg3e2xp3ZUwASEkYLQT/6YWI9hCZrogws6u0LxnAdOS6oJCnVEJar7C9AI4znSVGvyoFz4gYi36Dno4E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=JOTtm+B4OFCAy9hljCHG4r3E25a21W5ImJwwPq136HmRNRm0XS0ED6UwE00cMu+VN2W/JkEhh9cG3j1m08e/0Bmd4Hh/xqpVMHaGLkU8aqr6/nbchKqWgy4gQMLwaa4JF3NNs1f+bowgdWGRksy1jIJRX6DE4XmyHSZXZ3CGVsE=; Message-ID: <354710.32407.qm@web56403.mail.re3.yahoo.com> X-YMail-OSG: VMTZxTEVM1kwyWWp5AzIx.FR1zzbphFj7Vaktsr.SZOybS.ruEDkfP0rxqQ6fEWtLdiOdU59_lHTAxW28jsNVrAKlWV_8_Cg2HGOcRClM54gadfv2DqIBa47BkjV83P7_89sC7ni9VtSBEi6p.OgcbWhyv688a7O96EIOqgZBtox8.k0Yf9MfRSdIk7ecIVya_cuE139igVavA5HWYq9OKdtalJ_k7blGvTuk9sXmg55uUHTKQU7MPNCNEa3x.38vqTUW6fXfi8xBZIBEs.AH.LB2nN2.5rDC5I6Uyre4jFAh.uV_YUwxnTc.pR6H1cAiY9bp1ad0lBkjg-- Received: from [198.168.152.20] by web56403.mail.re3.yahoo.com via HTTP; Mon, 01 Jun 2009 05:14:11 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Mon, 1 Jun 2009 05:14:11 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= To: Doug Barton MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yvesguerin@yahoo.ca 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, 01 Jun 2009 12:14:12 -0000 Dear Doug, I will do some doc to explain what I have done, I will try to produce a pat= ch but my coding style may not follow the freebsd style and a review form t= he freebsd team will be necessary. Regards, Yves Guerin --- En date de : Sam 30.5.09, Doug Barton a =E9crit : De: Doug Barton Objet: Re: Profile rc idea =C0: yvesguerin@yahoo.ca Cc: freebsd-rc@freebsd.org Date: Samedi 30 Mai 2009, 0h19 Yves Gu=E9rin wrote: > I did something similar to your idea, I custom the boot menu (beastie.4th= ) to choose between home, office, dhcp and default configuration for my net= work interface on my laptop. > I grab the answer or the choice via the kenv system call, and on my rc di= rectory I start my own script just before netif to configure my network dep= ending on the answer I choose at boot time. So I think the idea can be modi= fy for every used that you can dream of. >=20 > I am able to send you my configuration, the boot menu and the rc file. I really like the idea of leveraging the existing boot menu for this. Can you send your patches to the list? Doug =0A=0A=0A From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 16:28:52 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 681141065676 for ; Mon, 1 Jun 2009 16:28:52 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: from web56408.mail.re3.yahoo.com (web56408.mail.re3.yahoo.com [216.252.111.87]) by mx1.freebsd.org (Postfix) with SMTP id F2D618FC0A for ; Mon, 1 Jun 2009 16:28:51 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: (qmail 75668 invoked by uid 60001); 1 Jun 2009 16:28:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1243873731; bh=YzHbm+81o/ZUivReokjDDtOd2C/beR05Yq74Db+B430=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=fiu0sp8CeKYnz7abCfcqIRaxEUU/GGQ0f43q2fXXeCyhPioCU4qQL2Zc725r0xXe4KP4wi4rGNv7+7CLAlntlTtFw4Q0CebHC7MHDIfenmGFXLrhw5FtWIM/VnsJaM/g2t+8kBp2zvv/0j3N337EmI+Tcjw5cSv+lZ08B7DZDi8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=k+2T0YY3N4e4MAzZsmwz0kFAAO8RHUPDJmmPlk7sC3+NeMOf45wLICT5wNq0inBRkVK29g5M/SOseFTcP2v55XJkapRAmsOMpeESCR8lLUeiRStziZyEkSf0OY08qfMEwPqZzk0AobrYHL/hYpevPwO6vaCUCakQhHr8Q0ELgXs=; Message-ID: <152177.75631.qm@web56408.mail.re3.yahoo.com> X-YMail-OSG: HahuekoVM1lAz4yCbBW5dInL3ga5l6AY60KRLqiSrLBP6Ae1pc9tBbVaxqxHdu39ekOh81ocZHJmi.EyyKUnVWYJolRJcjaGzAvqpYHIhDCce9VtemMhDmGjmwSSHbzFhbnWVUDvPmOO46XxiJ5gHdBOSblcsoRQFbZUPo3gXtoDmcyGVGFt5ZHgQd5qU6SvxJFoUmRjWIds5LEnx3FWOLlyCVyedDQaNX5R5imAYjpzlizuvv5y78rmge3RpU50ppNojmqPDvxkaCPnkut9JZ3IDbVOa7XBr1qoOlcZaSOrA0QRQfRIKyMZaIMuuR8Gcdedk5a6y04_AxjAskMupxdovgslENworPEoh39JdQ-- Received: from [198.168.152.20] by web56408.mail.re3.yahoo.com via HTTP; Mon, 01 Jun 2009 09:28:50 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Mon, 1 Jun 2009 09:28:50 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= To: Doug Barton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-515299765-1243873730=:75631" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yvesguerin@yahoo.ca 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, 01 Jun 2009 16:28:56 -0000 --0-515299765-1243873730=:75631 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Dear Sir, I made a README file but I am not very expert with patch (sorry) so to be a= ble to send my stuff as soon as possible I just did a tarball. If you need help or you have a question just drop me an email. Regards Yves Guerin --- En date de : Sam 30.5.09, Doug Barton a =E9crit : De: Doug Barton Objet: Re: Profile rc idea =C0: yvesguerin@yahoo.ca Cc: freebsd-rc@freebsd.org Date: Samedi 30 Mai 2009, 0h19 Yves Gu=E9rin wrote: > I did something similar to your idea, I custom the boot menu (beastie.4th= ) to choose between home, office, dhcp and default configuration for my net= work interface on my laptop. > I grab the answer or the choice via the kenv system call, and on my rc di= rectory I start my own script just before netif to configure my network dep= ending on the answer I choose at boot time. So I think the idea can be modi= fy for every used that you can dream of. >=20 > I am able to send you my configuration, the boot menu and the rc file. I really like the idea of leveraging the existing boot menu for this. Can you send your patches to the list? Doug =0A=0A=0A --0-515299765-1243873730=:75631-- From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 16:36:32 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACD7A106568F for ; Mon, 1 Jun 2009 16:36:32 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4782A8FC1E for ; Mon, 1 Jun 2009 16:36:32 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 12682 invoked by uid 399); 1 Jun 2009 16:36:28 -0000 Received: from localhost (HELO ?192.168.0.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 1 Jun 2009 16:36:28 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A24038C.9020903@FreeBSD.org> Date: Mon, 01 Jun 2009 09:36:28 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: yvesguerin@yahoo.ca References: <152177.75631.qm@web56408.mail.re3.yahoo.com> In-Reply-To: <152177.75631.qm@web56408.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea 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, 01 Jun 2009 16:36:33 -0000 Yves Guérin wrote: > Dear Sir, > > I made a README file but I am not very expert with patch (sorry) so to > be able to send my stuff as soon as possible I just did a tarball. > > If you need help or you have a question just drop me an email. Thanks! Don't worry about the coding style issues, that'll all get worked out as we develop the idea. Doug From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 21:24:58 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82A9D1065691 for ; Mon, 1 Jun 2009 21:24:58 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id D100C8FC18 for ; Mon, 1 Jun 2009 21:24:57 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n51LP7cO005128; Mon, 1 Jun 2009 16:25:07 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n51LP6O0005127; Mon, 1 Jun 2009 16:25:06 -0500 (CDT) (envelope-from brooks) Date: Mon, 1 Jun 2009 16:25:06 -0500 From: Brooks Davis To: Doug Barton Message-ID: <20090601212506.GA2351@lor.one-eyed-alien.net> References: <4A21A4F6.5060709@dougbarton.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <4A21A4F6.5060709@dougbarton.us> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 01 Jun 2009 16:25:07 -0500 (CDT) Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 01 Jun 2009 21:24:59 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 30, 2009 at 02:28:22PM -0700, Doug Barton wrote: > Without objection I plan to commit the attached patch before the code > slush, and to MFC the change. I object. Supporting values other than AUTO adds unnecessary complexity (not a lot, but some) and IMO leads to difficulty diagnosing proper system behavior. I'd much rather just delete network_interfaces entirely. I've never seen a valid use case, just failures to understand the current system. > I've never seen the rationale for this, and I use a value other than > AUTO personally for a script I have that tests to see if the wired > interface is up and starts the wireless if not. I've also seen other > users ask about this from time to time, so I'm sure I'm not alone. Please provide this script to support your argument. -- Brooks --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJEcyXY6L6fI4GtQRAjhdAJ9hcfAv7CJwp2YNXtkPDp70lhxVawCgowkI Qz1h+PFXwDTCpTvgH6behbQ= =Waah -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- From owner-freebsd-rc@FreeBSD.ORG Mon Jun 1 22:32:01 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD4041065679 for ; Mon, 1 Jun 2009 22:32:01 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 872588FC14 for ; Mon, 1 Jun 2009 22:31:59 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: (qmail 6348 invoked by uid 399); 1 Jun 2009 22:31:56 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 1 Jun 2009 22:31:56 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A2456DA.8040104@dougbarton.us> Date: Mon, 01 Jun 2009 15:31:54 -0700 From: Doug Barton User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: Brooks Davis References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> In-Reply-To: <20090601212506.GA2351@lor.one-eyed-alien.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 01 Jun 2009 22:32:02 -0000 Brooks Davis wrote: > On Sat, May 30, 2009 at 02:28:22PM -0700, Doug Barton wrote: >> Without objection I plan to commit the attached patch before the code >> slush, and to MFC the change. > > I object. Supporting values other than AUTO adds unnecessary > complexity (not a lot, but some) and IMO leads to difficulty diagnosing > proper system behavior. Can you provide examples? I've seen this argument before, but I seriously fail to understand it. The code to generate the list for AUTO is trivial, and I've never seen a support question that was caused by setting this to a different value. > I'd much rather just delete network_interfaces entirely. > > I've never seen a valid use case, just failures to understand the > current system. One could argue that the current system needs better documentation which should cover at least half that problem. Meanwhile, I've objected to the original change several times, as have various other users. After I committed the change BMS responded to my message on the svn list to say that he is planning on using this feature for a product that is currently in development as well. >> I've never seen the rationale for this, and I use a value other than >> AUTO personally for a script I have that tests to see if the wired >> interface is up and starts the wireless if not. I've also seen other >> users ask about this from time to time, so I'm sure I'm not alone. > > Please provide this script to support your argument. I set the value of network_interfaces to "lo0 test" and then I have a /etc/start_if.test script that checks to see if my wired interface is up, initializes it if it is, and if not it checks to see which wireless card I'm using and initializes that. I've actually spent quite a lot of time trying to figure out how to accomplish something similar with the current system but AFAICS we don't have a way to do that without hooking it in at the point where the network interfaces are actually configured. At some point in the future when I get a whole bunch of free time I'd like to extend what's in the base in order to do what I'm doing now with my little script ... Doug From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 05:33:35 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00C10106566B; Tue, 2 Jun 2009 05:33:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 63FC68FC08; Tue, 2 Jun 2009 05:33:34 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n525XMbL054496; Tue, 2 Jun 2009 06:33:23 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n525XMbL054496 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1243920804; bh=cDYuOGMBXYHSSnYwNuxUqnVKrFlzHEmDWDAL5ntlNYg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A24B99B.9050703@infracaninophile.co.uk>|Date:=20T ue,=2002=20Jun=202009=2006:33:15=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090420)|MIME-Vers ion:=201.0|To:=20Brooks=20Davis=20|CC:=20Doug= 20Barton=20,=20freebsd-rc@freebsd.org|Subject :=20Re:=20Removal=20of=20deprecation=20for=20network_interfaces=20 !=3D=20AUTO|References:=20<4A21A4F6.5060709@dougbarton.us>=20<2009 0601212506.GA2351@lor.one-eyed-alien.net>|In-Reply-To:=20<20090601 212506.GA2351@lor.one-eyed-alien.net>|X-Enigmail-Version:=200.95.6 |Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0 A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D" ------------enigF6A6C244D0117BAC3B801C7E"; b=MAPmJ0Sr5A3gG1pG4Zd5unR67psIZ+Ih+030hErxb22IEJ0VMqvmR9RFdo2bnDrhE JPFqEJCu03wDs8ZA2HwNzw6f67QnPxTE0pJiq2h11+jeVNmrgQJ+ajPZWKHsUsNnjy BiKUB3nZxNfmbnpdNof3NdKVQcZIERFts8EcJgMI= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A24B99B.9050703@infracaninophile.co.uk> Date: Tue, 02 Jun 2009 06:33:15 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: Brooks Davis References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> In-Reply-To: <20090601212506.GA2351@lor.one-eyed-alien.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF6A6C244D0117BAC3B801C7E" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-rc@freebsd.org, Doug Barton Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 05:33:35 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF6A6C244D0117BAC3B801C7E Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Brooks Davis wrote: > I've never seen a valid use case, just failures to understand the > current system. My laptop has iwi0 and bge0 interfaces. At work, both of these obtain addresses and default routes by DHCP, but from two completely different D= HCP servers. When I'm plugged into the wired network I want the bge0 interfa= ce to be the default route, but iwi0 comes first in the list of interfaces prod= uced by ifconfig, so it gets configured first and sets the route. Of course, = when I'm not plugged into the wired network I want iwi0 to have the default ro= ute, so I can't just use dhclient.conf to disregard routing information on tha= t interface. All in all, setting network_interfaces=3D"bge0 iwi0 lo0" does exactly wha= t I want with minimal effort. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigF6A6C244D0117BAC3B801C7E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkokuaEACgkQ8Mjk52CukIw7mACgiQTQitakfi11OiL68hP5f2Lw wCIAn1CEWwtaZuMLV4H4wWgtbiDSzvJv =82OP -----END PGP SIGNATURE----- --------------enigF6A6C244D0117BAC3B801C7E-- From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 15:48:25 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200A2106575C for ; Tue, 2 Jun 2009 15:48:25 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 80B838FC1F for ; Tue, 2 Jun 2009 15:48:24 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n52FmXag015182; Tue, 2 Jun 2009 10:48:33 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n52FmXWE015181; Tue, 2 Jun 2009 10:48:33 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Jun 2009 10:48:33 -0500 From: Brooks Davis To: Doug Barton Message-ID: <20090602154833.GE14685@lor.one-eyed-alien.net> References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A2456DA.8040104@dougbarton.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u5E4XgoOPWr4PD9E" Content-Disposition: inline In-Reply-To: <4A2456DA.8040104@dougbarton.us> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 02 Jun 2009 10:48:33 -0500 (CDT) Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 15:48:26 -0000 --u5E4XgoOPWr4PD9E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 01, 2009 at 03:31:54PM -0700, Doug Barton wrote: > Brooks Davis wrote: > > On Sat, May 30, 2009 at 02:28:22PM -0700, Doug Barton wrote: > >> Without objection I plan to commit the attached patch before the code > >> slush, and to MFC the change. > >=20 > > I object. Supporting values other than AUTO adds unnecessary > > complexity (not a lot, but some) and IMO leads to difficulty diagnosing > > proper system behavior.=20 >=20 > Can you provide examples? I've seen this argument before, but I > seriously fail to understand it. The code to generate the list for > AUTO is trivial, and I've never seen a support question that was > caused by setting this to a different value. It's been a while since I worked on the code and I'm busy so I'll have to back off on that argument for the moment. I do remember it complicating the logic, but don't have the time right now to recall what I wanted to do. I will assert that the second argument is wrong. The deprication notice has reduced the number of errors related to network_interfaces a fair bit. The biggest problem before was that people would omit lo0, but I seem to recall there were several other misunderstanding that removed feet. > >> I've never seen the rationale for this, and I use a value other than > >> AUTO personally for a script I have that tests to see if the wired > >> interface is up and starts the wireless if not. I've also seen other > >> users ask about this from time to time, so I'm sure I'm not alone. > >=20 > > Please provide this script to support your argument. >=20 > I set the value of network_interfaces to "lo0 test" and then I have a > /etc/start_if.test script that checks to see if my wired interface is > up, initializes it if it is, and if not it checks to see which > wireless card I'm using and initializes that. I've actually spent > quite a lot of time trying to figure out how to accomplish something > similar with the current system but AFAICS we don't have a way to do > that without hooking it in at the point where the network interfaces > are actually configured. Wouldn't /etc/start_if. do the same thing without having to set network_interfaces? > At some point in the future when I get a whole bunch of free time I'd > like to extend what's in the base in order to do what I'm doing now > with my little script ... I'd agree we could use some better hooks for this sort of thing. -- Brooks --u5E4XgoOPWr4PD9E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJUnRXY6L6fI4GtQRAv14AJsG2kjPbIZd6fiVJY/UumjVdDjZygCfWXew zk/iSFX9WAO9X886HfgCX28= =0Moo -----END PGP SIGNATURE----- --u5E4XgoOPWr4PD9E-- From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 15:53:55 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5576C106564A for ; Tue, 2 Jun 2009 15:53:55 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id B9D868FC2C for ; Tue, 2 Jun 2009 15:53:54 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n52Fs37o015254; Tue, 2 Jun 2009 10:54:03 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n52Fs3ah015253; Tue, 2 Jun 2009 10:54:03 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Jun 2009 10:54:03 -0500 From: Brooks Davis To: Matthew Seaman Message-ID: <20090602155403.GF14685@lor.one-eyed-alien.net> References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SxgehGEc6vB0cZwN" Content-Disposition: inline In-Reply-To: <4A24B99B.9050703@infracaninophile.co.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 02 Jun 2009 10:54:04 -0500 (CDT) Cc: freebsd-rc@freebsd.org, Doug Barton Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 15:53:55 -0000 --SxgehGEc6vB0cZwN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: > Brooks Davis wrote: >=20 >> I've never seen a valid use case, just failures to understand the >> current system. >=20 > My laptop has iwi0 and bge0 interfaces. At work, both of these obtain > addresses and default routes by DHCP, but from two completely different D= HCP > servers. When I'm plugged into the wired network I want the bge0 interfa= ce to > be the default route, but iwi0 comes first in the list of interfaces prod= uced > by ifconfig, so it gets configured first and sets the route. Of course, = when > I'm not plugged into the wired network I want iwi0 to have the default ro= ute, > so I can't just use dhclient.conf to disregard routing information on that > interface. >=20 > All in all, setting network_interfaces=3D"bge0 iwi0 lo0" does exactly wha= t I > want with minimal effort. This is an interesting use case. This is certainly the easiest way to do this in 7. FYI, it won't work by default in 8.0 because we only run dhclient from devd so there is no ordering unless you set synchronous_dhclient=3D"YES". What I've been thinking here is that we should have a way to tell dhclient which interface(s) to prefer for a default route. I've been meaning to fix that for a while, but since I've been using a cardbus wireless device, I've not needed to scratch that itch. -- Brooks --SxgehGEc6vB0cZwN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJUsbXY6L6fI4GtQRAmM2AKCFKh+nyseGgHRFeCTiiIHelucaugCdGbNU mw40HpuvNPSo4bHVzJbXBRE= =zjik -----END PGP SIGNATURE----- --SxgehGEc6vB0cZwN-- From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 16:47:10 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2625106566C; Tue, 2 Jun 2009 16:47:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 704278FC35; Tue, 2 Jun 2009 16:47:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52GAZWA059074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 09:10:35 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A254EFB.2020001@freebsd.org> Date: Tue, 02 Jun 2009 09:10:35 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Brooks Davis References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> <20090602155403.GF14685@lor.one-eyed-alien.net> In-Reply-To: <20090602155403.GF14685@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 16:47:11 -0000 Brooks Davis wrote: > On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: > >> Brooks Davis wrote: >> >> >>> I've never seen a valid use case, just failures to understand the >>> current system. >>> >> My laptop has iwi0 and bge0 interfaces. At work, both of these obtain >> addresses and default routes by DHCP, but from two completely different DHCP >> servers. When I'm plugged into the wired network I want the bge0 interface to >> be the default route, but iwi0 comes first in the list of interfaces produced >> by ifconfig, so it gets configured first and sets the route. Of course, when >> I'm not plugged into the wired network I want iwi0 to have the default route, >> so I can't just use dhclient.conf to disregard routing information on that >> interface. >> >> All in all, setting network_interfaces="bge0 iwi0 lo0" does exactly what I >> want with minimal effort. >> > > This is an interesting use case. This is certainly the easiest way > to do this in 7. FYI, it won't work by default in 8.0 because we > only run dhclient from devd so there is no ordering unless you set > synchronous_dhclient="YES". What I've been thinking here is that we > should have a way to tell dhclient which interface(s) to prefer for a > default route. I've been meaning to fix that for a while, but since > I've been using a cardbus wireless device, I've not needed to scratch > that itch. > Some people prefer to use lagg's failover handling to handle the wired-wireless switchover. Sam From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 17:26:50 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E28A91065673; Tue, 2 Jun 2009 17:26:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC728FC13; Tue, 2 Jun 2009 17:26:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n52HQgHW063962; Tue, 2 Jun 2009 18:26:43 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n52HQgHW063962 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1243963604; bh=vRXAtnYPDB3w7UwfhdWc4oblRTdDryygl/roKnemlaE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A2560CB.4030307@infracaninophile.co.uk>|Date:=20T ue,=2002=20Jun=202009=2018:26:35=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090420)|MIME-Vers ion:=201.0|To:=20Sam=20Leffler=20|CC:=20Brooks=20 Davis=20,=20freebsd-rc@freebsd.org|Subject:=20 Re:=20Removal=20of=20deprecation=20for=20network_interfaces=20!=3D =20AUTO|References:=20<4A21A4F6.5060709@dougbarton.us>=09<20090601 212506.GA2351@lor.one-eyed-alien.net>=09<4A24B99B.9050703@infracan inophile.co.uk>=20<20090602155403.GF14685@lor.one-eyed-alien.net>= 20<4A254EFB.2020001@freebsd.org>|In-Reply-To:=20<4A254EFB.2020001@ freebsd.org>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipar t/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"applicati on/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig475E16B74 5D0A3726124CC73"; b=rcFnGeKkeBJKUZCuNlI6Vz7aSFk9YK1lFF72OdM1WMOl86xVntF7WtFfo4n3BYo5d 33flp/ZfG4qjY77+7wT1xfhdf2Yb4fyzxzI8P98MfoV5cdB7u2bE8zzFMTsg5xY0v6 KRsGD2vpHbW2SWhYO5O6RHr4HCw7r9hBd7ySNSpo= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A2560CB.4030307@infracaninophile.co.uk> Date: Tue, 02 Jun 2009 18:26:35 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: Sam Leffler References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> <20090602155403.GF14685@lor.one-eyed-alien.net> <4A254EFB.2020001@freebsd.org> In-Reply-To: <4A254EFB.2020001@freebsd.org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig475E16B745D0A3726124CC73" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 17:26:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig475E16B745D0A3726124CC73 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sam Leffler wrote: > Brooks Davis wrote: >> On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: >> =20 >>> Brooks Davis wrote: >>> >>> =20 >>>> I've never seen a valid use case, just failures to understand the >>>> current system. >>>> =20 >>> My laptop has iwi0 and bge0 interfaces. At work, both of these obtai= n >>> addresses and default routes by DHCP, but from two completely=20 >>> different DHCP >>> servers. When I'm plugged into the wired network I want the bge0=20 >>> interface to >>> be the default route, but iwi0 comes first in the list of interfaces = >>> produced >>> by ifconfig, so it gets configured first and sets the route. Of=20 >>> course, when >>> I'm not plugged into the wired network I want iwi0 to have the=20 >>> default route, >>> so I can't just use dhclient.conf to disregard routing information on= =20 >>> that >>> interface. >>> >>> All in all, setting network_interfaces=3D"bge0 iwi0 lo0" does exactly= =20 >>> what I >>> want with minimal effort. >>> =20 >> >> This is an interesting use case. This is certainly the easiest way >> to do this in 7. FYI, it won't work by default in 8.0 because we >> only run dhclient from devd so there is no ordering unless you set >> synchronous_dhclient=3D"YES". What I've been thinking here is that we= >> should have a way to tell dhclient which interface(s) to prefer for a >> default route. I've been meaning to fix that for a while, but since >> I've been using a cardbus wireless device, I've not needed to scratch >> that itch. >> =20 > Some people prefer to use lagg's failover handling to handle the=20 > wired-wireless switchover. How does that work if the two interfaces are in entirely different networ= ks? Can you trigger an arbitrary action (such as modifying the routing table)= when a lagg interface fails over? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig475E16B745D0A3726124CC73 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkolYNIACgkQ8Mjk52CukIzuLgCgk/KKJprDye/bXj0Kmo9dzn9/ EP4An33HvF+t/nJGwy1R13xktmPDTKFo =FqNo -----END PGP SIGNATURE----- --------------enig475E16B745D0A3726124CC73-- From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 17:40:00 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F7F01065674; Tue, 2 Jun 2009 17:40:00 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3628FC12; Tue, 2 Jun 2009 17:40:00 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52HdxXP059753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 10:40:00 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A2563EF.4050502@freebsd.org> Date: Tue, 02 Jun 2009 10:39:59 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Matthew Seaman References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> <20090602155403.GF14685@lor.one-eyed-alien.net> <4A254EFB.2020001@freebsd.org> <4A2560CB.4030307@infracaninophile.co.uk> In-Reply-To: <4A2560CB.4030307@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO 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, 02 Jun 2009 17:40:02 -0000 Matthew Seaman wrote: > Sam Leffler wrote: >> Brooks Davis wrote: >>> On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: >>> >>>> Brooks Davis wrote: >>>> >>>> >>>>> I've never seen a valid use case, just failures to understand the >>>>> current system. >>>>> >>>> My laptop has iwi0 and bge0 interfaces. At work, both of these obtain >>>> addresses and default routes by DHCP, but from two completely >>>> different DHCP >>>> servers. When I'm plugged into the wired network I want the bge0 >>>> interface to >>>> be the default route, but iwi0 comes first in the list of >>>> interfaces produced >>>> by ifconfig, so it gets configured first and sets the route. Of >>>> course, when >>>> I'm not plugged into the wired network I want iwi0 to have the >>>> default route, >>>> so I can't just use dhclient.conf to disregard routing information >>>> on that >>>> interface. >>>> >>>> All in all, setting network_interfaces="bge0 iwi0 lo0" does exactly >>>> what I >>>> want with minimal effort. >>>> >>> >>> This is an interesting use case. This is certainly the easiest way >>> to do this in 7. FYI, it won't work by default in 8.0 because we >>> only run dhclient from devd so there is no ordering unless you set >>> synchronous_dhclient="YES". What I've been thinking here is that we >>> should have a way to tell dhclient which interface(s) to prefer for a >>> default route. I've been meaning to fix that for a while, but since >>> I've been using a cardbus wireless device, I've not needed to scratch >>> that itch. >>> >> Some people prefer to use lagg's failover handling to handle the >> wired-wireless switchover. > > How does that work if the two interfaces are in entirely different > networks? > Can you trigger an arbitrary action (such as modifying the routing table) > when a lagg interface fails over? Sorry, didn't read your note well enough. I don't think lagg is applicable to your setup. Sam From owner-freebsd-rc@FreeBSD.ORG Wed Jun 3 14:21:16 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB43F1065673 for ; Wed, 3 Jun 2009 14:21:16 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: from web56408.mail.re3.yahoo.com (web56408.mail.re3.yahoo.com [216.252.111.87]) by mx1.freebsd.org (Postfix) with SMTP id 88E6C8FC24 for ; Wed, 3 Jun 2009 14:21:15 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: (qmail 92330 invoked by uid 60001); 3 Jun 2009 14:21:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1244038875; bh=G2V699EEg79K0i0KoY9FghywREyee5T8mxIXEaMSZV0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=nOaXktGhpUjE1sn/m6Iho35m4M5yuANM0RSCYEITK4EPK7RCFWd7aSTyQB9VWn+UPX0kfLJIQ38+JoJQUvPQhUQvLtlDbhJVeoPf3fj4SIrbdI/eAxESb5E16q0NWBdI6V8AZN2wzcDwNr/LG06YKxF38gtOE59QWek1xl4yDls= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=AplgLrYAYZUzvmPSRkR6V5P1ZXxYTDI4qdB1KkydGybbmcdPbEUSlwRxAJ4wwZg5K7umMoQOgdtVp5qMsiBbTY7G8i+xwObDaFq9rTsf75R+HOis6mluTSaI1nwAPraywi1AvRq72RJ/u5bxqEECaXtW0bQmDHrUNnnRhHqk4tM=; Message-ID: <350474.92140.qm@web56408.mail.re3.yahoo.com> X-YMail-OSG: ZNT71xsVM1llZEzScCVx4QAZ26_43fKzUzbIcfb3PtSrHcQoN9gsHGEmQls8SFRIMAN3JgIdxPepB9.GjIT2QbOfNN2mY07KPQw1ZcumYLcur2D30KfQOj91O7c8R4jTSJtRuACD5ctUDurE4vLX8so1WLRpuzYI.gn6BgFCrkhJdfvlBfgFvXDfhfEv7ZhjHWmZTeCm9YVZOE_WNzS2U2ALIDzHdAslVZcnPYBvVPu4jkWNywjzWbCznLIqdHTMmX4AzRw68K9RKkmNzw7ufHcYJMb4qByWUz4iMZ7qVwSCDWsn5ZZaHwr0S2_xaaLq4ZEnZc2Vc4mnKw-- Received: from [198.168.152.20] by web56408.mail.re3.yahoo.com via HTTP; Wed, 03 Jun 2009 07:21:15 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Wed, 3 Jun 2009 07:21:15 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= To: Doug Barton MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yvesguerin@yahoo.ca 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, 03 Jun 2009 14:21:17 -0000 Dear Sir, I forgot to tell you that if you put a menu during the boot process, after = the forth menu and if the user loads the splashscreen, your menu will never= be visible to the end-user, because the splashscreen will be over the menu= (on top), you have to unload the screensaver kermel module.=A0 I experienc= ed it, so after 10 minutes I were wondering what happen to my laptop and af= ter hitting the "esc" key I were able to see my menu (console).=A0 It happe= ns on my old laptop with freebsd 6.1 so your mileage may vary. Regards, Yves Guerin --- En date de : Lun 1.6.09, Doug Barton a =E9crit : De: Doug Barton Objet: Re: Profile rc idea =C0: yvesguerin@yahoo.ca Cc: freebsd-rc@freebsd.org Date: Lundi 1 Juin 2009, 21h36 Yves Gu=E9rin wrote: > Dear Sir, >=20 > I made a README file but I am not very expert with patch (sorry) so to > be able to send my stuff as soon as possible I just did a tarball. >=20 > If you need help or you have a question just drop me an email. Thanks!=A0 Don't worry about the coding style issues, that'll all get worked out as we develop the idea. Doug =0A=0A=0A From owner-freebsd-rc@FreeBSD.ORG Wed Jun 3 16:08:57 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82386106564A for ; Wed, 3 Jun 2009 16:08:57 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 828E18FC21 for ; Wed, 3 Jun 2009 16:08:56 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 27748 invoked by uid 399); 3 Jun 2009 16:07:32 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 3 Jun 2009 16:07:32 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A269FC3.6070705@FreeBSD.org> Date: Wed, 03 Jun 2009 09:07:31 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: yvesguerin@yahoo.ca References: <350474.92140.qm@web56408.mail.re3.yahoo.com> In-Reply-To: <350474.92140.qm@web56408.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-rc@freebsd.org Subject: Re: Profile rc idea 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, 03 Jun 2009 16:08:57 -0000 Thanks for the info. :) Doug Yves Guérin wrote: > Dear Sir, > > I forgot to tell you that if you put a menu during the boot process, > after the forth menu and if the user loads the splashscreen, your menu > will never be visible to the end-user, because the splashscreen will be > over the menu (on top), you have to unload the screensaver kermel > module. I experienced it, so after 10 minutes I were wondering what > happen to my laptop and after hitting the "esc" key I were able to see > my menu (console). It happens on my old laptop with freebsd 6.1 so your > mileage may vary. > > Regards, > > Yves Guerin > > > --- En date de : *Lun 1.6.09, Doug Barton //* a écrit : > > > De: Doug Barton > Objet: Re: Profile rc idea > À: yvesguerin@yahoo.ca > Cc: freebsd-rc@freebsd.org > Date: Lundi 1 Juin 2009, 21h36 > > Yves Guérin wrote: > > Dear Sir, > > > > I made a README file but I am not very expert with patch (sorry) so to > > be able to send my stuff as soon as possible I just did a tarball. > > > > If you need help or you have a question just drop me an email. > > Thanks! Don't worry about the coding style issues, that'll all get > worked out as we develop the idea. > > Doug > > -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Sat Jun 6 08:40:03 2009 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6126F106564A for ; Sat, 6 Jun 2009 08:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 343C18FC0C for ; Sat, 6 Jun 2009 08:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n568e2lv044753 for ; Sat, 6 Jun 2009 08:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n568e2Jc044752; Sat, 6 Jun 2009 08:40:02 GMT (envelope-from gnats) Date: Sat, 6 Jun 2009 08:40:02 GMT Message-Id: <200906060840.n568e2Jc044752@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: conf/134333: PPP configuration problem in the rc.d scripts in combination with bash shell X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker 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, 06 Jun 2009 08:40:03 -0000 The following reply was made to PR conf/134333; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, dreibh@iem.uni-due.de Cc: Subject: Re: conf/134333: PPP configuration problem in the rc.d scripts in combination with bash shell Date: Sat, 6 Jun 2009 10:30:36 +0200 The cause is probably that /etc/rc.d/ppp is using su -m, which uses the invoking user's shell from /etc/passwd. There doesn't seem a good alternative for su -m though, other than requiring the target user have /bin/sh as shell and using plain su or su -. A new option to su to execute a command using /bin/sh could be useful. -- Jilles Tjoelker