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?

2 Replies

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.

And the "in use" error sounds like you have ntpd running, but you're trying to execute ntpdate from cron everyday despite that.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct