[CentOS] System on time
Niki Kovacs
contact at kikinovak.net
Fri Nov 9 15:36:53 UTC 2007
Matt Hyclak a écrit :
> On Fri, Nov 09, 2007 at 03:00:10PM +0100, Niki Kovacs enlightened us:
>> To get my system on time, I usually issue these two commands:
>>
>> # ntpdate de.pool.ntp.org
>> # hwclock -w
>>
>> And when I want this to be done on startup, I put the two lines in
>> rc.local.
>>
>> I wonder if this is an orthodox way to do things. Or is there something
>> more appropriate?
>>
>
> chkconfig ntpd on
>
> will cause ntpd to sync and start the ntp daemon every boot.
>
> service ntpd start
>
> will start the daemon right now.
>
Hmmm. This is strange. When I use the method you described, the command
'date' returns 17:34. But when I stop the ntpd service and run 'ntpdate'
manually as I described, it's 16:34 (which is right, and btw, I live in
South France).
I'm confused.
Niki Kovacs
More information about the CentOS
mailing list