From owner-freebsd-rc@FreeBSD.ORG Mon May 3 11:08:24 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1980106566B for ; Mon, 3 May 2010 11:08:24 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7674E8FC0A for ; Mon, 3 May 2010 11:08:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o43B8OX7033706 for ; Mon, 3 May 2010 11:08:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o43B8N3F033704 for freebsd-rc@FreeBSD.org; Mon, 3 May 2010 11:08:23 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 May 2010 11:08:23 GMT Message-Id: <201005031108.o43B8N3F033704@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, 03 May 2010 11:08:24 -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/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc] [patch] Making rc.firewall (workstation) IPv6 awa o conf/137629 rc [rc] background_dhclient rc.conf option causing double o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc] Cannot update /etc/host.conf when root filesystem o conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/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/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/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 p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/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 79 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon May 3 23:37:35 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0B3D106566B for ; Mon, 3 May 2010 23:37:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id F21928FC23 for ; Mon, 3 May 2010 23:37:33 +0000 (UTC) Received: (qmail 12637 invoked by uid 399); 3 May 2010 23:37:33 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 3 May 2010 23:37:33 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BDF5E3C.4080301@FreeBSD.org> Date: Mon, 03 May 2010 16:37:32 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: John Baldwin References: <201005031527.18468.jhb@freebsd.org> In-Reply-To: <201005031527.18468.jhb@freebsd.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Brooks Davis , freebsd-rc@FreeBSD.org, net@freebsd.org Subject: Re: Workaround automatic re-loading of network drivers 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, 03 May 2010 23:37:35 -0000 Seems reasonable to me. Doug On 05/03/10 12:27, John Baldwin wrote: > While testing some changes with vlans and the new vlan_ syntax in rc.conf > I've noticed the following behavior: > > ifconfig foo0.100 destroy > > Will actually try to kldload the 'foo' driver. This can prove very non- > intuitive. In general I think we shouldn't try to kldload anything when > destroying an interface period. What I've done locally is to pass '-n' to > ifconfig when destroying an interface. > > We should possibly fix some other bugs however. For example, ifmaybeload() in > ifconfig should probably stop at the first non-digit it finds (e.g. ".") > rather than trimming from the first digit on. Also, perhaps 'ifconfig > destroy' should imply -n without requiring it to be explicit. > > I also moved the ifconfig destroy of wlan and vlan devices up before running > ifn_stop to prevent running 'ifconfig down' which would also reload the > driver due to the first bug in ifconfig. > > Index: network.subr > =================================================================== > --- network.subr (revision 207329) > +++ network.subr (working copy) > @@ -915,7 +915,7 @@ > _list= > > for ifn in ${cloned_interfaces}; do > - ifconfig ${ifn} destroy > + ifconfig -n ${ifn} destroy > if [ $? -eq 0 ]; then > _list="${_list}${_prefix}${ifn}" > [ -z "$_prefix" ] && _prefix=' ' > @@ -1000,10 +1000,10 @@ > if ! ifexists $child; then > continue > fi > + ifconfig -n $child destroy && cfg=0 > if autoif $child; then > ifn_stop $child > fi > - ifconfig $child destroy && cfg=0 > done > > child_vlans=`get_if_var $ifn vlans_IF` > @@ -1014,10 +1014,10 @@ > if ! ifexists $child; then > continue > fi > + ifconfig -n $child destroy && cfg=0 > if autoif $child; then > ifn_stop $child > fi > - ifconfig $child destroy && cfg=0 > done > > return ${cfg} > > -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Tue May 4 15:17:58 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D88D61065673; Tue, 4 May 2010 15:17:58 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (mail.digitalfreaks.org [216.151.95.156]) by mx1.freebsd.org (Postfix) with ESMTP id AEA768FC0C; Tue, 4 May 2010 15:17:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id D86FE33C57; Tue, 4 May 2010 11:04:33 -0400 (EDT) Received: from mail.digitalfreaks.org ([127.0.0.1]) by localhost (mail.digitalfreaks.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 04889-70; Tue, 4 May 2010 11:04:33 -0400 (EDT) Received: from mail.digitalfreaks.org (mail.digitalfreaks.org [216.151.95.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digitalfreaks.org (Postfix) with ESMTPSA id 39A9533C56; Tue, 4 May 2010 11:04:33 -0400 (EDT) Date: Tue, 4 May 2010 11:04:33 -0400 (EDT) From: "Brian A. Seklecki" X-X-Sender: lavalamp@vger.digitalfreaks.org To: freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org In-Reply-To: <201004062317.o36NHYoB049073@freefall.freebsd.org> Message-ID: References: <201004062317.o36NHYoB049073@freefall.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.2a mail.digitalfreaks Cc: spolyack@gmail.com, Mark Harrison Subject: Re: conf/145440: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing 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, 04 May 2010 15:17:58 -0000 The only downside to ( conf/132476 conf/132483 ?) is that it uses jot(1), which I don't see in rc(8) anywhere else. Bash has {0..9} syntax, and even reverse {9..0}, but you cant put variables in for one of the extents, so that doesn't help us, and we dont have bash. conf/145440 is the exact same code is except he uses a {while...do}, which is what I was about to start on, so thank you very much. ~BAS From owner-freebsd-rc@FreeBSD.ORG Tue May 4 15:46:51 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8AFC2106564A for ; Tue, 4 May 2010 15:46:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 171188FC13 for ; Tue, 4 May 2010 15:46:50 +0000 (UTC) Received: (qmail 21973 invoked by uid 399); 4 May 2010 15:46:50 -0000 Received: from localhost (HELO ?192.168.0.145?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 4 May 2010 15:46:50 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BE04167.6020800@FreeBSD.org> Date: Tue, 04 May 2010 08:46:47 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: "Brian A. Seklecki" References: <201004062317.o36NHYoB049073@freefall.freebsd.org> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: spolyack@gmail.com, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org, Mark Harrison Subject: Re: conf/145440: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing 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, 04 May 2010 15:46:51 -0000 On 5/4/2010 8:04 AM, Brian A. Seklecki wrote: > > The only downside to ( conf/132476 conf/132483 ?) is that it uses jot(1), > which I don't see in rc(8) anywhere else. That's because jot is in /usr/bin, which is not guaranteed to be accessible at boot time, especially not before the network is up. hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Tue May 4 18:00:13 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60BE5106566B; Tue, 4 May 2010 18:00:13 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (mail.digitalfreaks.org [216.151.95.156]) by mx1.freebsd.org (Postfix) with ESMTP id 2B4088FC17; Tue, 4 May 2010 18:00:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id 7949333C7D; Tue, 4 May 2010 14:02:09 -0400 (EDT) Received: from mail.digitalfreaks.org ([127.0.0.1]) by localhost (mail.digitalfreaks.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 11208-07; Tue, 4 May 2010 14:02:08 -0400 (EDT) Received: from mail.digitalfreaks.org (mail.digitalfreaks.org [216.151.95.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digitalfreaks.org (Postfix) with ESMTPSA id C3DDB33C7C; Tue, 4 May 2010 14:02:08 -0400 (EDT) Date: Tue, 4 May 2010 14:02:08 -0400 (EDT) From: "Brian A. Seklecki" X-X-Sender: lavalamp@vger.digitalfreaks.org To: freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org In-Reply-To: Message-ID: References: <201004062317.o36NHYoB049073@freefall.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.2a mail.digitalfreaks Cc: spolyack@gmail.com, Mark Harrison , Sergey Matveychuk Subject: Re: conf/145440: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing 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, 04 May 2010 18:00:13 -0000 I have tested this patch in a pre-production environment and found it very useful. It meets my requirements. A few quick usage notes...one can do: rc.conf(5): static_routes_fib0="fib0_firstnet fib0_2ndnet" route_fib0_firstnet="206.210.89.192/27 206.83.220.129" route_fib0_2ndnet="206.210.72.64/27 206.83.220.129" defaultrouter_fib0="192.168.1.1" static_routes_fib1="fib1_firnet fib1_2ndnet" route_fib1_firstnet="192.168.0.0/16 192.168.0.1" route_fib1_2ndnet="192.168.169.0/24 192.168.66.1" defaultrouter_fib1="206.83.220.129" --- or --- You acn strip off references to "fib0" and have your original syntax statements be your implied first route, depending on how your OCD is feeling. ~BAS Lastly, I add the following information line: --- snip --- while : ; do echo "Configuring static routes for FIB: ${fib}" line 46 of 194 in RELENG_8 as of today. Thanks all! ~BAS From owner-freebsd-rc@FreeBSD.ORG Thu May 6 13:10:07 2010 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C048106564A for ; Thu, 6 May 2010 13:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 62B648FC1E for ; Thu, 6 May 2010 13:10:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o46DA721022204 for ; Thu, 6 May 2010 13:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o46DA7wb022203; Thu, 6 May 2010 13:10:07 GMT (envelope-from gnats) Date: Thu, 6 May 2010 13:10:07 GMT Message-Id: <201005061310.o46DA7wb022203@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Angelo Turetta Cc: Subject: Re: conf/132476: [rc.d] [patch] add support setfib(1) in rc.d/routing X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Angelo Turetta 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, 06 May 2010 13:10:07 -0000 The following reply was made to PR conf/132476; it has been noted by GNATS. From: Angelo Turetta To: bug-followup@FreeBSD.org, sem@FreeBSD.org Cc: Subject: Re: conf/132476: [rc.d] [patch] add support setfib(1) in rc.d/routing Date: Thu, 06 May 2010 14:45:54 +0200 Ping.... I think this issue deserves some attention. Thanks Angelo. From owner-freebsd-rc@FreeBSD.ORG Thu May 6 16:40:03 2010 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E9E12106564A for ; Thu, 6 May 2010 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DA8CA8FC08 for ; Thu, 6 May 2010 16:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o46Ge3fq002043 for ; Thu, 6 May 2010 16:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o46Ge38f002042; Thu, 6 May 2010 16:40:03 GMT (envelope-from gnats) Date: Thu, 6 May 2010 16:40:03 GMT Message-Id: <201005061640.o46Ge38f002042@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Sergey Matveychuk Cc: Subject: Re: conf/132476: [rc.d] [patch] add support setfib(1) in rc.d/routing X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Matveychuk 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, 06 May 2010 16:40:04 -0000 The following reply was made to PR conf/132476; it has been noted by GNATS. From: Sergey Matveychuk To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/132476: [rc.d] [patch] add support setfib(1) in rc.d/routing Date: Thu, 06 May 2010 20:38:21 +0400 This is a multi-part message in MIME format. --------------070600000107030003030603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit The patch without jot(1). (A first feedback for 1 year and 2 monthes I accidentally read in rc@). Unfortunately I have no a box with CURRENT now. Sorry. So, the patch for 7.x and 8.x. --------------070600000107030003030603 Content-Type: text/plain; name="setfib-rc.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="setfib-rc.patch" LS0tIGV0Yy9yYy5kL3JvdXRpbmcub3JpZwkyMDEwLTAzLTI0IDIwOjU4OjQ4LjAwMDAwMDAw MCArMDMwMAorKysgZXRjL3JjLmQvcm91dGluZwkyMDEwLTA1LTA2IDIwOjI0OjAzLjAwMDAw MDAwMCArMDQw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dGljX3JvdXRlc19maWJOCisuUHEgVnQgc3Ry CitTZXQgdG8gdGhlIGxpc3Qgb2Ygc3RhdGljIHJvdXRlcyB0aGF0IGFyZSB0byBiZSBhZGRl ZCBpbiBGSUIKK251bWJlciBOLiBTZWUgc2V0ZmliKDEpLgogLkl0IFZhIGlwdjZfc3RhdGlj X3JvdXRlcwogLlBxIFZ0IHN0cgogVGhlIElQdjYgZXF1aXZhbGVudCBvZgoK --------------070600000107030003030603-- From owner-freebsd-rc@FreeBSD.ORG Thu May 6 17:59:59 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11132106566B; Thu, 6 May 2010 17:59:59 +0000 (UTC) (envelope-from mark@mivok.net) Received: from mail-gx0-f226.google.com (mail-gx0-f226.google.com [209.85.217.226]) by mx1.freebsd.org (Postfix) with ESMTP id A247F8FC12; Thu, 6 May 2010 17:59:58 +0000 (UTC) Received: by gxk26 with SMTP id 26so157233gxk.13 for ; Thu, 06 May 2010 10:59:52 -0700 (PDT) Received: by 10.231.160.135 with SMTP id n7mr3066712ibx.26.1273167204163; Thu, 06 May 2010 10:33:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.58.169 with HTTP; Thu, 6 May 2010 10:32:48 -0700 (PDT) In-Reply-To: References: <201004062317.o36NHYoB049073@freefall.freebsd.org> From: Mark Harrison Date: Thu, 6 May 2010 13:32:48 -0400 Message-ID: To: "Brian A. Seklecki" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: spolyack@gmail.com, freebsd-bugs@freebsd.org, freebsd-rc@freebsd.org Subject: Re: conf/145440: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing 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, 06 May 2010 17:59:59 -0000 That's good to hear. I'm glad I could be of help. > =A0A few quick usage notes...one can do: *snip* This is probably obvious to you, but if you're adding to the usage notes, I'd also point out that a particular route_foo entry can be used in multiple fibs if there is any overlap. E.g. static_routes_fib0=3D"net1 net2" static_routes_fib1=3D"net1" static_routes_fib2=3D"net2" route_net1=3D"192.168.0.0/24 192.168.0.1" route_net2=3D"10.0.0.0/24 10.0.0.1" From owner-freebsd-rc@FreeBSD.ORG Fri May 7 17:10:04 2010 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D704106566C for ; Fri, 7 May 2010 17:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 143C48FC08 for ; Fri, 7 May 2010 17:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o47HA3We078596 for ; Fri, 7 May 2010 17:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o47HA3XH078595; Fri, 7 May 2010 17:10:03 GMT (envelope-from gnats) Date: Fri, 7 May 2010 17:10:03 GMT Message-Id: <201005071710.o47HA3XH078595@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Eugene Grosbein Cc: Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein 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, 07 May 2010 17:10:04 -0000 The following reply was made to PR conf/132483; it has been noted by GNATS. From: Eugene Grosbein To: bug-followup@freebsd.org Cc: sem@freebsd.org Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for rc.subr Date: Sat, 08 May 2010 00:08:20 +0700 I've tested second patch (setfib_for_rc.subr.diff), it works. Vote for commit. Without this, there is no way to bind a network service running from rcNG-based startup script to a non-default FIB. The only alternative is ugly way to use /etc/rc.local with "setfib N ... forcestart" command that ignores dependencies. Please commit. Eugene Grosbein From owner-freebsd-rc@FreeBSD.ORG Fri May 7 17:57:27 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8DBDA1065673 for ; Fri, 7 May 2010 17:57:27 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (mail.ciam.ru [91.209.218.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC698FC1A for ; Fri, 7 May 2010 17:57:27 +0000 (UTC) Received: from dhcp170-37-red.yandex.net ([95.108.170.37]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1OARJu-00057l-Ed; Fri, 07 May 2010 21:26:38 +0400 Message-ID: <4BE44D4E.1080308@FreeBSD.org> Date: Fri, 07 May 2010 21:26:38 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Eugene Grosbein References: <201005071710.o47HA3XH078595@freefall.freebsd.org> In-Reply-To: <201005071710.o47HA3XH078595@freefall.freebsd.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) 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: Fri, 07 May 2010 17:57:27 -0000 Eugene Grosbein wrote: > The following reply was made to PR conf/132483; it has been noted by GNATS. > > From: Eugene Grosbein > To: bug-followup@freebsd.org > Cc: sem@freebsd.org > Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for rc.subr > Date: Sat, 08 May 2010 00:08:20 +0700 > > I've tested second patch (setfib_for_rc.subr.diff), it works. > > Vote for commit. Without this, there is no way to bind > a network service running from rcNG-based startup script > to a non-default FIB. > > The only alternative is ugly way to use /etc/rc.local with > "setfib N ... forcestart" command that ignores dependencies. > > Please commit. > Unfortunately setfib(1) is in /usr/sbin "which is not guaranteed to be accessible at boot time, especially not before the network is up." (c) dougb@ So, this patch has a little chance to be committed. -- Sem. From owner-freebsd-rc@FreeBSD.ORG Fri May 7 18:50:38 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8896106566C; Fri, 7 May 2010 18:50:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A787E8FC13; Fri, 7 May 2010 18:50:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o47Ihsqx048686; Fri, 7 May 2010 12:43:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 07 May 2010 12:44:10 -0600 (MDT) Message-Id: <20100507.124410.123339447257066316.imp@bsdimp.com> To: sem@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <4BE44D4E.1080308@FreeBSD.org> References: <201005071710.o47HA3XH078595@freefall.freebsd.org> <4BE44D4E.1080308@FreeBSD.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org, eugen@grosbein.pp.ru Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) 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: Fri, 07 May 2010 18:50:39 -0000 In message: <4BE44D4E.1080308@FreeBSD.org> Sergey Matveychuk writes: : Eugene Grosbein wrote: : > The following reply was made to PR conf/132483; it has been noted by : > GNATS. : > From: Eugene Grosbein : > To: bug-followup@freebsd.org : > Cc: sem@freebsd.org : > Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for : > rc.subr : > Date: Sat, 08 May 2010 00:08:20 +0700 : > I've tested second patch (setfib_for_rc.subr.diff), it works. : > Vote for commit. Without this, there is no way to bind : > a network service running from rcNG-based startup script : > to a non-default FIB. : > The only alternative is ugly way to use /etc/rc.local with : > "setfib N ... forcestart" command that ignores dependencies. : > Please commit. : > : : Unfortunately setfib(1) is in /usr/sbin "which is not guaranteed to be : accessible at boot time, especially not before the network is up." (c) : dougb@ : : So, this patch has a little chance to be committed. Do we still support boot environments where this is actually true?[*] /usr/* isn't available before mountcrit. Given the amount of sed and awk in use, I think this is likely safe. Warner [*] where the root partition that's mounted by the kernel for its root file system doesn't contain /usr and we mount that via the network later. From owner-freebsd-rc@FreeBSD.ORG Sat May 8 08:06:07 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC47D1065672; Sat, 8 May 2010 08:06:07 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D1D358FC19; Sat, 8 May 2010 08:06:06 +0000 (UTC) Received: by vws17 with SMTP id 17so1224343vws.13 for ; Sat, 08 May 2010 01:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=5X4mOCqWjuk5IogZWA6UltnYZloi9EcAi9qC3DyorOU=; b=ig4v3rNl1afP7kQ2MFzRvYd8ypPsahdVNLBZKMdQU1mK82TCGVeDlVZihup7jGB/VS T8c63YkNacUvZk/Mgo0lixu0F9SPn0kRy2vGZLHGknLdtPijmwO+RCJtTbWfvaJS7Qaf hvWvCk9o2fbLq0nvkUqGMtQn50Y3UNB9/7US4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=X/KO46nf4kR9T3+ODpU4fu08k4HHy3xKIQpovlp8ql4JaunuQ5xfJ8nMWkp/yy16nC vX1X5ulkGOybFL4zKlnbZlx6/h7+Q2czAlb3pVFQiDpMDuGiLcvTJD587sNP1J5To2ts HQc0y5Ym//E1NCm9n9xNXWbxZaALZJ3X33VNc= Received: by 10.220.158.6 with SMTP id d6mr954983vcx.38.1273305956046; Sat, 08 May 2010 01:05:56 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-41-129.dsl.klmzmi.sbcglobal.net [99.19.41.129]) by mx.google.com with ESMTPS id w29sm16711780vcr.2.2010.05.08.01.05.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 01:05:54 -0700 (PDT) Sender: "J. Hellenthal" Date: Sat, 8 May 2010 04:05:18 -0400 From: jhell To: Jeremy Chadwick In-Reply-To: <20100426080815.GA41938@icarus.home.lan> Message-ID: References: <20100426080815.GA41938@icarus.home.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Subject: Re: rc(8) script -- waiting for the network to become usable 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, 08 May 2010 08:06:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 26 Apr 2010 04:08, Jeremy Chadwick wrote: In Message-Id: <20100426080815.GA41938@icarus.home.lan> > Foremost, sorry for the cross-post, but more eyes in this case means > overall more discussion. Secondly, please keep me CC'd as I'm not on > either -rc or -net. > > I recently proposed addition of a new script to the rc framework which > verifies (using ping) that layer 3 network connectivity is up/functional > before continuing on with daemons which require network access: > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056400.html > > The overall response was positive, with full acknowledgement that this > is indeed a hack -- yet necessary -- and that something more appropriate > could probably be introduced into the base system to provide a much > cleaner solution (launchd was mentioned). > > I'd like folks (particularly on -rc) to chime in here, and please see > about adding this to the base system. > > Please note there's one typo in the script (a line which needs to be > commented out) in my original post which I've since fixed in the version > that's available via HTTP. > > Thank you! > > Thanks for the script Jeremy, this will really come in handy on some machines that I want to test for this case. On another note and return thanks I have made some modifications so it can be used as just a drop-in until its either committed or denied. Also renamed it as to not cause confusion with your version and to better fit my schema. Here it is: http://code.google.com/p/jhell/source/browse/base/head/scripts/rc.d/netwait/netwait Regards, - -- jhell -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJL5RtEAAoJEJBXh4mJ2FR+yBwH/11k0MOaPUnlxHSI+txdMg8D c5UfJzvKe5f5/VHeRpfbANuyM1ve+s2MCOdDT7C5xZ6C12Bb2JseqllXsrS8RrO0 9UwPuNr3pgP5axRSoYa9fnHelPkCNXbsl1xKEHeGHl3XvkvEGxQ5dzRwfWYAvBqx GxqTVaaQpVIcv8DlXyGCq1pFkyleQT1b9xRhrp3KZDVGUVBiJDjBoTXCeUrm7LZC ESIkn/ff5JarZfQ3t2/ZyqBt1DrMnbm2v99ZQCuL3Wg2LsGdUtiEs+XBF2lE2/4x fuW8np1L3Mn0JbWCz1LlVqjHx9Y8BrMRkBA0x/ncHjiVtodOn0NIveskswYCdww= =dj5G -----END PGP SIGNATURE----- From owner-freebsd-rc@FreeBSD.ORG Sat May 8 20:27:07 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 509F91065670 for ; Sat, 8 May 2010 20:27:07 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id EDABB8FC18 for ; Sat, 8 May 2010 20:27:06 +0000 (UTC) Received: (qmail 30434 invoked by uid 399); 8 May 2010 20:27:06 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 8 May 2010 20:27:06 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BE5C918.1050408@FreeBSD.org> Date: Sat, 08 May 2010 13:27:04 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: "M. Warner Losh" References: <201005071710.o47HA3XH078595@freefall.freebsd.org> <4BE44D4E.1080308@FreeBSD.org> <20100507.124410.123339447257066316.imp@bsdimp.com> In-Reply-To: <20100507.124410.123339447257066316.imp@bsdimp.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: eugen@grosbein.pp.ru, freebsd-rc@FreeBSD.org, sem@FreeBSD.org Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) 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: Sat, 08 May 2010 20:27:07 -0000 On 05/07/10 11:44, M. Warner Losh wrote: > In message: <4BE44D4E.1080308@FreeBSD.org> > Sergey Matveychuk writes: > : Eugene Grosbein wrote: > : > The following reply was made to PR conf/132483; it has been noted by > : > GNATS. > : > From: Eugene Grosbein > : > To: bug-followup@freebsd.org > : > Cc: sem@freebsd.org > : > Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for > : > rc.subr > : > Date: Sat, 08 May 2010 00:08:20 +0700 > : > I've tested second patch (setfib_for_rc.subr.diff), it works. > : > Vote for commit. Without this, there is no way to bind > : > a network service running from rcNG-based startup script > : > to a non-default FIB. > : > The only alternative is ugly way to use /etc/rc.local with > : > "setfib N ... forcestart" command that ignores dependencies. > : > Please commit. > : > > : > : Unfortunately setfib(1) is in /usr/sbin "which is not guaranteed to be > : accessible at boot time, especially not before the network is up." (c) > : dougb@ > : > : So, this patch has a little chance to be committed. > > Do we still support boot environments where this is actually true?[*] > /usr/* isn't available before mountcrit. Yes, diskless boot. > Given the amount of > sed and awk in use, I think this is likely safe. As a general rule such things are discouraged, but if the service you're trying to launch already relies on something in /usr[/local] then it's not a problem. For instance, given that setfib(8) is in /usr/sbin then relying on jot(1) (which is in /usr/bin) isn't a show-stopper, although I would have avoided using it on principle, but that's just me. :) Please note, I have no opinion either way on the "setfib in rc.d" idea, and if those who have actual knowledge of the value of the proposal are in favor, I'm not opposed to seeing it committed. hth, Doug > [*] where the root partition that's mounted by the kernel for its root > file system doesn't contain /usr and we mount that via the network > later. > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" > -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/