hi,

i'm trying to keep my local clock synched through ntpd. i used to do
that with ntpdate, but since ntpd is available in a standard install
i thought i'd try that. i start ntpd at boot, with added -s to synch
the clock right away. however, after that it starts moving the clock 
backwards. restarting ntpd just makes it repeat the process :

[old ntpd, started at boot]
Mar 27 08:46:58  ntpd[20919]: adjusting local clock by 9642.320276s
Mar 27 08:49:06  ntpd[20919]: adjusting local clock by 2143.405987s
Mar 27 08:50:07  ntpd[20919]: adjusting local clock by 2142.248606s
Mar 27 08:51:42  ntpd[20919]: adjusting local clock by 9644.027785s
Mar 27 08:54:45  ntpd[1871]: ntp_dispatch_imsg in ntp engine: pipe closed
Mar 27 08:54:45  ntpd[1871]: ntp engine exiting
[restart]
Mar 27 08:55:02  ntpd[2426]: ntp engine ready
Mar 27 11:35:52  ntpd[16439]: set local clock to Tue Mar 27 11:35:52 CEST 2007 
(offset 9649.641093s)
Mar 27 11:36:09  ntpd[2426]: peer 194.146.227.112 now valid
[some more peers snipped]
Mar 27 11:37:33  ntpd[6515]: adjusting local clock by 1.288053s
Mar 27 11:40:10  ntpd[6515]: adjusting local clock by 6.464148s
Mar 27 11:40:10  ntpd[2426]: clock is now synced
Mar 27 11:44:23  ntpd[6515]: adjusting local clock by 10.656797s
Mar 27 11:46:36  ntpd[6515]: adjusting local clock by 13.004900s
Mar 27 11:46:36  ntpd[2426]: clock is now unsynced
Mar 27 11:49:17  ntpd[6515]: adjusting local clock by 11.683026s
Mar 27 11:53:39  ntpd[6515]: adjusting local clock by 15.193740s

(if left alone, this adjustment will increase perpetually).

timezone is set correctly :
$ ls -la /etc/localtime 
lrwxr-xr-x  1 root  wheel  36 Dec  2 00:38 /etc/localtime -> 
/usr/share/zoneinfo/Europe/Amsterdam

$ date
Tue Mar 27 12:25:30 CEST 2007

any ideas ? it _has_ managed to keep the clock synched once,
but after a reboot it went completely bonkers. i tried removing
the drift-file and restarting it as well, to no avail. i'm
running 4.0-release, and the provided ntpd.

-- 
CUL8R, Peter.

Reply via email to