Dead BIOS battery? Not really. But for the purposes of argument let us say that we have a small hardware clock that needs to be set to present date and time on every reboot. The default value if such an updation does not occur is Jan 1, 1970 00:00. Now my implementation with ntpd wants this clock to sync with a NTP time source every single time (it is connected to the network all the time). For this I'm using NTP package ntp-4.2.6p5. I'm calling ntpd with the -g and -n flags. i.e. /usr/bin/ntpd -g n > /var/log/ntp.log
The conf file looks something like this: driftfile /etc/ntp.drift server <hostname> iburst server <hostname> iburst server <hostname> iburst server <hostname> iburst On Tue, Sep 4, 2012 at 2:12 PM, Harlan Stenn <[email protected]> wrote: > Arpith Nayak writes: > > Hi all, > > I'm running into this problem. The system time is set to 1970 after > every > > system reboot. > > Dead BIOS battery? > > > The first time I enable ntpd it is contacting the ntp source and > > getting the updated time. However it is unable to change the system > > time immediately. Only after I stop the service and start it again > > does the system time get changed. Has anyone else observed this > > behaviour? > > What version of NTP? What startup command-line flags are you using? > > What does your ntp.conf file look like? > > > Also is there any way to iteratively consult the various server > > addresses given in the ntp.conf file? > > ntpd checks all of the servers and server addresses listed in the > ntp.conf file. > > H > _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
