Re: setting hardware clock from NIST
On Tue, Nov 04, 2003 at 09:04:58PM -0500, Haines Brown wrote:
> So my first question is, what is debian's equivalent to "clock". All
> it did, with the -w option, was to set the hardware clock from the
> system clock. I presume the former is GMT, and so there is a time
> offset invoved.
hwclock -w
> Second, where to put it? I placed a copy of my time.rc into
> /etc/init.d, and then created a symlink to it in /etc/rc2.d so that
> the hardware clock is reset on boot, and also in /etc/cron.daily, so
> that the clocks are reset daily according to NIST. Will this work; is
> there a better arrangement?
Anywhere after the network device initialization should do.
The ntpdate package may interest you.
Reply to: