From owner-freebsd-questions Sun Oct 11 07:54:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01941 for freebsd-questions-outgoing; Sun, 11 Oct 1998 07:54:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01934 for ; Sun, 11 Oct 1998 07:54:39 -0700 (PDT) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id KAA17579; Sun, 11 Oct 1998 10:53:53 -0400 (EDT) Message-ID: <19981011105352.A17471@emu.sourcee.com> Date: Sun, 11 Oct 1998 10:53:52 -0400 From: Norman C Rice To: Dean Hollister Cc: David Kelly , questions@FreeBSD.ORG, Jim Cassata Subject: Re: xntpd References: <19981011092548.A14433@emu.sourcee.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Dean Hollister on Sun, Oct 11, 1998 at 09:49:47PM +0800 X-Mutt-References: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 11, 1998 at 09:49:47PM +0800, Dean Hollister wrote: > On Sun, 11 Oct 1998, Norman C Rice wrote: > > > If you created the drift file, delete it and restart xntpd so it can create > > the drift file when it's ready too -- have patience. Apparently, xntpd expects > > the drift file to contain valid data if it exists. > > I found xntpd would not start if the drift file did not exist. So, I just > touched it (meant is was 0b length), then started xntpd. No problems > thereafter. My experience is definitely different from yours. I have found xntpd spewing the ``drift value xxx invalid'' message into the log file when an empty drift file existed, where `xxx' was garbage. I believe that this comes from ntp_util.c where xntpd is attempting to extract the frequency and mode from the drift file. The fscanf call returns -1 and atolfp is called with buf uninitialized. IIRC, a significant period of time elapsed before the drift file was created. -- Regards, Norman C. Rice, Jr. > > Regards, > > d. > > +-------------------------------------------------------+ > | Dean Hollister, | dean@mushka.ml.org | > | Perth, Western Australia. | dean@wa.apana.org.au | > +-------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message