I am running ntp update , one after one (with sec between them), In the log i see that there is always an offset , even if update was run few sec ago.

Why is that?Is there a chance to get 0 offset?

grep ntpd /var/log/syslog
Nov 22 15:12:01 test ntpdate[3363]: adjust time server offset 0.002939 sec
Nov 22 15:12:22 test ntpdate[3368]: adjust time server offset -0.002787 sec
Nov 22 15:12:47 test ntpdate[3372]: adjust time server offset 0.002498 sec
Nov 22 15:13:17 test ntpdate[3379]: adjust time server offset -0.001611 sec
Nov 22 15:13:53 test ntpdate[3385]: adjust time server offset -0.002720 sec

It's pretty much impossible to get to a 0 offset. Instead of using ntpdate, you should just consider running ntpd in the background. Running ntpdate on a cron is not really the best idea for keeping your server's time accurate.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.