Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: ntp
PostPosted: Sun Mar 13, 2011 12:25 am 
Offline
Junior Member

Joined: Sat Sep 18, 2010 7:49 pm
Posts: 24
on ubuntu I am getting this mailed to me daily

13 Mar 04:23:52 ntpdate[30925]: the NTP socket is in use, exiting

because of cron job /etc/cron.daily/ntpdate

can I delete this cron job???? will my clock still get updated?


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 2:56 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Generally, it's far preferred to run ntpd than to periodically run ntpdate.

ntpd will run constantly. It corrects time by adjusting the speed at which the kernel counts time, rather than changing the date directly. This approach means that you don't have any sudden jumps which can cause issues with software. It also means that any clock drift (as in, your computer's clock running ever so slightly too fast or slow, which is not uncommon on a VPS) is corrected for, preventing it from affecting the time. It is still common, however, to run ntpdate on boot, to ensure that ntpd has a relatively accurate starting time to work with; ntpd can't make big corrections to the time. It relies on keeping the time accurate rather than making big changes.


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 7:28 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
And the "in use" error sounds like you have ntpd running, but you're trying to execute ntpdate from cron everyday despite that.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group