[Slackdocs] Proofreaders wanted for NTP-HOWTO
sbb at tuxfamily.org
Sat Sep 8 15:16:13 CEST 2012
Le Sat, 08 Sep 2012 13:00:28 +0200
Niki Kovacs <info at microlinux.fr> a écrit:
> Seb a écrit :
> > I use ntpd in my rc.local to sync my station every Sundays, and this
> > machine is off when I don't use it (I mean totally off, it is
> > connected to a power strip with a toggle) -- sometimes for days. I
> > never encountered any problem. Maybe because I use "ntpd -g -q"? the
> > ntpd manual describes the -q/--quit option as the replacement for
> > ntpdate.
> Well, the HOWTO is for scenarios where machines have to be *constantly*
> synchronized (e. g. not just once a week on Sunday).
Yes, but in this section you show how to sync the time occasionally.
> The 'ntpdate' allows to adjust a system clock that's out of sync by more
> than half an hour. You can try to manually "set" your system to a wrong
> time and date. 'ntpd -g' will fail to adjust it, 'ntpdate' won't.
Weird... by there it seems to work pretty:
# date -s "19700101 01:01:01"
jeu. janv. 1 01:01:01 CET 1970
# ntpd -g -q
ntpd: time set +1347109688.512447s
sam. sept. 8 15:09:30 CEST 2012
More information about the Slackdocs