From owner-freebsd-current@FreeBSD.ORG Thu Oct 21 15:25:05 2004 Return-Path: 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 B067516A4CE for ; Thu, 21 Oct 2004 15:25:05 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D8AF43D1F for ; Thu, 21 Oct 2004 15:25:05 +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 i9LFOTYu003202; Thu, 21 Oct 2004 08:24:29 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9LFOSY1003200; Thu, 21 Oct 2004 08:24:28 -0700 Date: Thu, 21 Oct 2004 08:24:28 -0700 From: Brooks Davis To: Mike Makonnen Message-ID: <20041021152428.GC31030@odin.ac.hmc.edu> References: <20041020220329.64CE75D04@ptavv.es.net> <20041021150513.GA1811@rogue.acs.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oJ71EGRlYNjSvfq7" Content-Disposition: inline In-Reply-To: <20041021150513.GA1811@rogue.acs.lan> 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 Subject: Re: RCng/NTP Catch-22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 15:25:05 -0000 --oJ71EGRlYNjSvfq7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2004 at 06:05:13PM +0300, Mike Makonnen wrote: > On Wed, Oct 20, 2004 at 03:03:29PM -0700, Kevin Oberman wrote: > > I have run into a messy issue with ntp on a V5 or current system. I have > > kludged around it, but the problem really needs to be fixed. > >=20 > > ntpd uses symlinked devices to talk to the reference clock (if there is > > one). > > lrwxr-xr-x 1 root wheel 10 Jul 1 14:36 /dev/pps1 -> /dev/cuaa1 > > lrwxr-xr-x 1 root wheel 10 Jul 1 14:36 /dev/true1 -> /dev/cuaa1 > >=20 > > While I really wish ntpd did not do this, it does and it's in the base > > system.=20 > >=20 > > Since /etc/rc.d/ntpd contains: > > BEFORE: LOGIN > > and /etc/rc.d/devfs contains: > > REQUIRE: LOGIN > > I don't see a clean way to create the symlinks at boot time. If the > > devices are not present when ntp starts, it never looks again. >=20 > I don't see why devfs requires LOGIN. It only requires that rcconf and > the /usr filesystem be available. Also, since it appears that it > may be needed by some daemons it should be set to run before any servers > are started. I think the attached (untested) patch should work. >=20 > Cheers. > --=20 > Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc > mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7C= D4 1F55 > mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon ! > Index: etc/rc.d/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 -r1.9 devfs > --- etc/rc.d/devfs 7 Oct 2004 13:55:25 -0000 1.9 > +++ etc/rc.d/devfs 21 Oct 2004 15:03:33 -0000 > @@ -4,8 +4,8 @@ > # > =20 > # PROVIDE: devfs > -# REQUIRE: LOGIN > -# BEFORE: securelevel > +# REQUIRE: rcconf mountcritremote > +# BEFORE: SERVERS securelevel > # KEYWORD: nojail > =20 > . /etc/rc.subr I think this is better then what I posted. I think it would be nice to have a virtual dependency to replace "rcconf mountcritremote" since we use it all the time and what we really mean is that /usr is mounted. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --oJ71EGRlYNjSvfq7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBd9SrXY6L6fI4GtQRArj7AKDj7JPP1aO9cpUiowqISAsWNBc/YwCfYGoa OdXpRttkdT/0I09rnM+TVLg= =wnw2 -----END PGP SIGNATURE----- --oJ71EGRlYNjSvfq7--