[PLUG] Setting the time properly
Paul Heinlein
heinlein at attbi.com
Thu Sep 12 15:45:36 UTC 2002
On Thu, 12 Sep 2002, Rich Shepard wrote:
> Does setting UTC=true set the time to that, but correct for the
> local time zone?
Honestly, I don't know. I've never played with that setting.
> Now that I've changed this, how do I implement the changes?
Take a look at /etc/rc.d/rc.sysinit. That's the boot script that,
among other things, sets the time.
I think (but please verify this for yourself) that you'll want to
1. shut down ntpd
2. ensure that /etc/localtime == /usr/share/zoneinfo/US/Pacific; you
can copy the latter to the former if they differ
3. run "ntpdate" against a time server you trust
4. run "/sbin/hwclock --localtime --systohc" to get the hardware clock
in sync
5. restart ntpd
--Paul Heinlein <heinlein at attbi.com>
More information about the PLUG
mailing list