From owner-freebsd-current@FreeBSD.ORG Thu Oct 21 15:06:03 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 E1D0116A4CE for ; Thu, 21 Oct 2004 15:06:03 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0349043D3F for ; Thu, 21 Oct 2004 15:06:00 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.68.46] (HELO rogue.acs.lan) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP id 60732654; Thu, 21 Oct 2004 17:58:42 +0300 Received: by rogue.acs.lan (Postfix, from userid 1000) id 571A3B819; Thu, 21 Oct 2004 18:05:13 +0300 (EAT) Date: Thu, 21 Oct 2004 18:05:13 +0300 From: Mike Makonnen To: Kevin Oberman Message-ID: <20041021150513.GA1811@rogue.acs.lan> References: <20041020220329.64CE75D04@ptavv.es.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <20041020220329.64CE75D04@ptavv.es.net> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/6.0-CURRENT (i386) 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:06:04 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > > 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 > > While I really wish ntpd did not do this, it does and it's in the base > system. > > 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. 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. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon ! --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff Index: etc/rc.d/devfs =================================================================== 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 @@ # # PROVIDE: devfs -# REQUIRE: LOGIN -# BEFORE: securelevel +# REQUIRE: rcconf mountcritremote +# BEFORE: SERVERS securelevel # KEYWORD: nojail . /etc/rc.subr --k+w/mQv8wyuph6w0--