From owner-freebsd-rc@FreeBSD.ORG Thu Oct 21 15:19:18 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B4516A4CE; Thu, 21 Oct 2004 15:19:17 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF43743D3F; Thu, 21 Oct 2004 15:19:17 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i9LFJEn0002677; Thu, 21 Oct 2004 08:19:14 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9LFJEWn002676; Thu, 21 Oct 2004 08:19:14 -0700 Date: Thu, 21 Oct 2004 08:19:14 -0700 From: Brooks Davis To: Kevin Oberman Message-ID: <20041021151914.GB31030@odin.ac.hmc.edu> References: <4176E837.90402@telia.com> <20041021132145.65F415D04@ptavv.es.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: <20041021132145.65F415D04@ptavv.es.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-current@freebsd.org cc: freebsd-rc@freebsd.org cc: Pawel Worach Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 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, 21 Oct 2004 15:19:18 -0000 --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [-rc added to the CC list.] On Thu, Oct 21, 2004 at 06:21:45AM -0700, Kevin Oberman wrote: > > Date: Thu, 21 Oct 2004 00:35:35 +0200 > > From: Pawel Worach > >=20 > > Kevin Oberman wrote: > > >>Date: Thu, 21 Oct 2004 00:07:08 +0200 > > >>From: Pawel Worach > > > Pawel, > > >=20 > > > Thanks, but you missed the point. /etc/rc.d/devfs is always executed > > > AFTER ntpd. So putting the links into devfs.conf does not help. It's = too > > > late. > >=20 > > Sorry, missed the patch I'm using. > >=20 > > --- /usr/src/etc/rc.d/NETWORKING Fri Oct 8 01:49:33 2004 > > +++ NETWORKING Thu Oct 21 00:30:39 2004 > > @@ -6,7 +6,7 @@ > >=20 > > # PROVIDE: NETWORKING NETWORK > > # REQUIRE: dhclient netif routing network_ipv6 isdnd ppp-user > > -# REQUIRE: routed mrouted route6d mroute6d > > +# REQUIRE: routed mrouted route6d mroute6d devfs > >=20 > > # This is a dummy dependency, for services which require network= ing > > # to be operational before starting. > > --- /usr/src/etc/rc.d/devfs Fri Oct 8 01:49:33 2004 > > +++ devfs Thu Oct 21 00:31:52 2004 > > @@ -4,7 +4,6 @@ > > # > >=20 > > # PROVIDE: devfs > > -# REQUIRE: LOGIN > > # BEFORE: securelevel > > # KEYWORD: nojail >=20 > Thanks. This does the trick, but allows devfs to start at any time > before securelevel. I'm not sure if this might bite me somewhere down > the line. Why does devfs require LOGIN? I assume three was a reason, but > I have no idea if it was a good one or just a convenient choice. >=20 > In any case, this does get things started, but a solution really needs > to be incorporated into the distribution system. People installing and > maintaining systems should not have to patch startup files to make ntpd > work. The requiement of LOGIN is bogus. Things that configure important features like /dev must come before users might try to use them. The current setup is extra nonsensical because devd is already running when rc.d/devfs starts beating on things in /dev. I'll commit the following patch soon if there are no objections. -- Brooks Index: devfs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/etc/rc.d/devfs,v retrieving revision 1.9 diff -u -p -r1.9 devfs --- devfs 7 Oct 2004 13:55:25 -0000 1.9 +++ devfs 21 Oct 2004 15:12:52 -0000 @@ -4,8 +4,7 @@ # =20 # PROVIDE: devfs -# REQUIRE: LOGIN -# BEFORE: securelevel +# BEFORE: NETWORKING securelevel # KEYWORD: nojail =20 . /etc/rc.subr --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBd9NyXY6L6fI4GtQRAhfVAJ4lRKQbv0aAk+fxdN/RqDiOaMcYBQCcDsbl Lk8IyY0DzM0RH4pdOF+1xh8= =16AP -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--