Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpdate deprecated in favour of ntpd -q yet different result
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
koan
Apprentice
Apprentice


Joined: 01 May 2006
Posts: 169
Location: Melbourne

PostPosted: Wed Jun 02, 2010 9:45 am    Post subject: ntpdate deprecated in favour of ntpd -q yet different result Reply with quote

With ntpdate running at boot time, we are saying "set the date to whatever the time servers say it is, no matter what".

With ntpdate being deprecated, the new approach is to use ntpd -q. However, this is saying "set the date to whatever the time servers say it is, as long as it isn't different to the current clock by more than 17 minutes". Otherwise leave it is is.

From my perspective, whatever timeservers are available at boot time, they are much more likely to have a good idea of what the time is right now than the hardware clock on the motherboard. Particularly if the reason for the boot was dirty shutdown and hwclock -systohc didn't get a chance to run.

The 17 minute premise of ntpd is all very well under normal circumstances, where it has been syncing all day and suddenly there is a big discrepency - it makes sense to ignore such a shift. But it makes no sense at all at boot time. So it doesn't sync and services and VMs begin with the incorrect time. Or don't begin because they also recognise something is bonkers with the server time.

What is everyone else using?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Wed Jun 02, 2010 10:43 am    Post subject: Reply with quote

You could add -g in /etc/conf.d/ntpd
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
koan
Apprentice
Apprentice


Joined: 01 May 2006
Posts: 169
Location: Melbourne

PostPosted: Wed Jun 02, 2010 11:38 am    Post subject: Reply with quote

Ohhh. Ahem.

[*walks away with a tuneless whistle*]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum