From owner-freebsd-current Sun Dec 15 1: 4:41 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ED3637B401 for ; Sun, 15 Dec 2002 01:04:38 -0800 (PST) Received: from mail.identd.net (matrix.identd.net [64.172.21.201]) by mx1.FreeBSD.org (Postfix) with SMTP id ABA8943EA9 for ; Sun, 15 Dec 2002 01:04:37 -0800 (PST) (envelope-from mtm@identd.net) Received: (qmail 1069 invoked by uid 1007); 15 Dec 2002 09:04:37 -0000 Date: Sun, 15 Dec 2002 01:04:37 -0800 From: Mike Makonnen To: Galen Sampson Cc: current@freebsd.org, imp@freebsd.org Subject: Re: rcng script bugs Message-ID: <20021215090437.GC404@matrix.identd.net> References: <20021214222412.99816.qmail@web14101.mail.yahoo.com> <20021215090251.GB404@matrix.identd.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZmUaFz6apKcXQszQ" Content-Disposition: inline In-Reply-To: <20021215090251.GB404@matrix.identd.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD/4.7-STABLE (i386) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ZmUaFz6apKcXQszQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [ ok, really cc him this time] On Sun, Dec 15, 2002 at 01:02:51AM -0800, Mike Makonnen wrote: >=20 > [ cc'ed imp@ since the second one concerns changes he recently made ] >=20 > On Sat, Dec 14, 2002 at 02:24:12PM -0800, Galen Sampson wrote: > >=20 > > 17c17 > > < pidfile=3D"/var/run/${name}.pid" > > --- > > > pidfile=3D"/var/run/${name}/pid" > >=20 > > in order to match the default named.conf file. >=20 > Yes, definitely a bug. I had changed my named.conf so I didn't notice > this. However, I think your solution is just as broken as the current > code. While it would work if the user doesn't change the default > pid path, it wouldn't work for people who do change it (like me). > I think the way to solve it is with a "named_pidfile" variable in > defaults/rc.conf that defaults to /var/run/named/pid. What are people's > thoughts on this? Secondly, the change would have to go into the > 'FreeBSD' case-clause in order not to mess up the NetBSD case. >=20 >=20 > >=20 > > /etc/rc.d/network1: > > When using a diskless configuration this file took the interface off= line, > > preventing the machine from booting. I noticed that a change has been = added to > > check if an interface is up and skip configuring it if it is. Instead = of using > > grep it is possible to use ifconfig's -d option (see man page) to only = list > > interfaces marked as down. This is my change for /etc/rc.d/network1 > >=20 > > 140c140 > > < network_interfaces=3D"`ifconfig -l -d`" > > --- > > > network_interfaces=3D"`ifconfig -l`" > > 148a149,153 > > > if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then > > > # Interface is already up, so ignore it. > > > continue; > > > fi > > > > Warner, >=20 > He's working off the first set of changes you made but it seems > that in the diskless case you may have to reconfigure more > than just lo0. >=20 > Cheers. > --=20 > Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc > mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DB= CC 68B9 --=20 Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC= 68B9 --ZmUaFz6apKcXQszQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9/EWk2uHir9vMaLkRAkeOAKCq4Xpr2TY0wTDSxi74ZvXTP0+wggCfWkmv 2vNPKrfZRiLIiojNCNZ118I= =mGsd -----END PGP SIGNATURE----- --ZmUaFz6apKcXQszQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message