[ntp:questions] using ntpd to initialise time instead of ntpdate sets wrong time.

mayer at gis.net mayer at gis.net
Thu Apr 14 16:49:18 UTC 2005


----- Original Message Follows -----
> I've got an embedded linux machine whose initial time is 1, Jan, 1970.
> When I use ntpdate to set the correct time at boot time it does this 
> correctly, but when I use ntpd to do this it sets the time backwards
> to  1937. The debug shows that the offset is seen as a negative value.
> The  documentation suggests that ntpd -q can be used as a replacement
> for  ntpdate.
> 

Try using ntpd -gq since -g will ignore limits. What version of ntpd
do you have on this system? Recent versions will set the date correctly
(modulo 68 years).

Danny





More information about the questions mailing list