[ntp:questions] Re: "ntpd" and hwclock
bob.beers at gmail.com
Tue Oct 4 14:36:05 UTC 2005
On 04 Oct 2005 16:22:57 +0200, Ulrich Windl <
Ulrich.Windl at rz.uni-regensburg.de> wrote:
> NTP's task is to synchronize the system time. The OS' task is to keep the
> system time (during reboots). As you are using Linux, you could have a
> look at
> my PPSkit patches where the kernel updates the RTC chip whenever the
> had been changed (e.g. "date -s"), or when the system time is NTP-synced
> (!STA_UNSYNC). For your pleasure, you can switch that on and off, and
> the interval of updates.
URL to these patches?
Could I accomplish the same thing by checking output of
ntpq -p -c "rv 0 state" for a non-zero value of state=, and running
hwclock --systohc in a bash script?
More information about the questions