* SUMMARY: Setting Date/Time
@ 1998-10-08 15:14 bgille - Bill Gillespie
0 siblings, 0 replies; only message in thread
From: bgille - Bill Gillespie @ 1998-10-08 15:14 UTC (permalink / raw)
To: tru64-unix-managers
Original question:
> What is the correct process for setting the date and time on a DEC Alpha 4100 running Unix 4.0b?
>
> Is it as simple as using the Unix date command?
> Do you have to reboot after doing this, and what happens if you don't?
>
A lot of responses indicating that yes, use the date -nu command, and no reboot is necessary. However, you should set the box to single user mode (this is actually mentioned in the man page for date as well).
A very nice response by Peter, pchapin@twilight.vtc.vsc.edu:
It can be that simple. No reboot is necessary. The kernel will immediately
accept the new time. However, jumping the time abruptly -- especially by a
large step -- can sometimes cause certain applications to get confused.
For example, cron jobs might be missed (or run twice "in a row"), etc.
Another approach is to use something like xntpd to sychronize the time to
time servers on the 'net. The xntpd daemon will "nudge" the time in small
steps to bring it up to date and then insure that it never drifts too far
from the correct time. That solution might be overkill for what you're
doing.
I have a machine running Linux that has a screwed up clock. it falls
behind by many minutes per day. I've used the date command to reset the
time on that machine by as much as two hours at once. It worked okay. But
then that machine wasn't running any time sensitive applications. I'm
running xntpd on it now just so that I don't have to bother resetting the
time regularly. The log file makes for amusing reading (if a log file can
be said to be amusing). The xntpd daemon is constantly compensating for
the screwed up clock. However, the time on the box is now never more than
a second or two off.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-10-08 15:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-08 15:14 SUMMARY: Setting Date/Time bgille - Bill Gillespie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox