New ntp install from tarball
Gene Heskett
gheskett at wdtv.com
Mon Dec 22 18:18:27 UTC 2014
On Monday 22 December 2014 12:52:23 Gene Heskett did opine
And Gene did reply:
> On Monday 22 December 2014 11:50:26 C de-Avillez did opine
>
> And Gene did reply:
> > On Sun, Dec 21, 2014 at 1:42 PM, Gene Heskett <gheskett at wdtv.com>
wrote:
> > > On Sunday 21 December 2014 11:58:17 Tom H did opine
> > >
> > > And Gene did reply:
> > >> On Sun, Dec 21, 2014 at 8:26 AM, Gene Heskett <gheskett at wdtv.com>
>
> wrote:
> > >> > I just installed ntp-4.2.8 in the default /usr/local prefix, and
> > >> > adjusted the stuff in /etc/init.d/ntp, and in /etc/defaults/ntp,
> > >> > and its working, but neither I nor my watch script seem to be
> > >> > able to locate a "drift" or "ntp.drift" file that the default
> > >> > 10.04.4 LTS version kept in the /var/lib/ntp subdir.
> > >>
> > >> Check "{,/usr/local}/etc/ntp.drift".
> >
> > There are two ways of specifying the drift file:
> >
> > * the driftfile keyword in the NTP configuration;
> > * the "-f <driftfile>" parameter to the NTP daemon, where <driftfile>
> > is the full path to the drift file desired location.
>
> I have done this, in /etc/default/ntp.
>
> > Drift files should be created automagically if they do not exist --
> > but it takes some time for the file to be created. When NTPd starts
> > (and absent a driftfile) it will start monitoring the time variances
> > more intensively. Once it decides it has enough data about the drift,
> > it will write a driftfile to the location specified in either of the
> > two locations above, and slow down drift calculations. Usually this
> > process takes from many minutes to one hour or so.
> >
> > So... check your drift file location; verify it is owned by the
> > userid running the daemon; wait a few hours.
> >
> > This should be it.
>
> I created, by touching, both of the potential filenames at the path
> specified in /etc/default/ntp, but discovered just now that I sill own
> them, so chowned them to ntp:ntp just now. Likewise the parent "ntp"
> directory in /usr/local/lib.
>
> Now we wait...
>
> Thanks, C de-Avillez, this is stuff that simply is not important enough
> to make the man page. And yet its quite important to verifying that
> it is indeed working.
>
> Cheers & Have a merry Christmas, Gene Heskett
As a PS:
Looking at the log I create with ntpq, which runs when I start it with a
30 minute interval, I note that although it appears to be working, the
"offset" value is slowly incrementing in the negative, so apparently it
needs built with more options than just --enable-clockctl. IOW its not
working even though I installed it while sudo'd.
Looking into it.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
More information about the ubuntu-users
mailing list