ntpdate from cron -- DON'T DO THAT! - Linux

Elma avatar
By Elma
at 2008-08-21T22:02

Table of Contents

http://0rz.tw/714Eo

ntpdate from cron -- DON'T DO THAT!



To: [email protected]
Subject: ntpdate from cron -- DON'T DO THAT!
From: "N. Thomas" <[email protected]>
Date: Sat, 21 Dec 2002 18:51:24 -0500
Message-id: <[email protected]>
In-reply-to: <[email protected]>
References: <[email protected]>



* Sonny Kupka <[email protected]> [2002-12-21 10:46:12 -0600]:
> I have ntpdate installed on woody.. and it's not automagically keeping my
> system in sync..

Contrary to what you may have heard, ntpdate does not keep your system
clock synced. Also ignore the foolish recommendations to run ntpdate
from a cron job.

ntpdate works like date(1), but it sets your clock's time to that of an
ntp server (or servers) instead of having it specified by you.

If you want to keep your clock in sync use ntpd -- that's what it was
designed for. It uses many sophisticated algorithms and statistical
methods to accomplish this. After some time, it can even figure out how
"bad" your system clock is (i.e. its drift) and compensate for it, even
if your network connection goes out.

Unfortunately, some people, instead of taking the time to read the ntp
documentation and writing a proper ntp.conf file, took the easy route
and started running ntpdate from cron.

This caused two problems, firstly it did not keep very good time:
immediately after you called ntpdate, your clock would begin to drift
again. And more importantly, every hour or so, the ntp servers were
being affected by a "thunderclap" effect, the result of everybody
putting:

0 * * * * /usr/local/bin/ntpdate

or something similar into their crontab files. The ntp daemon does not
do this as it randomizes the time it waits between queries.

For this reason, Dr. Mills (ntp author) has deprecated ntpdate, and
indeed, he will be removing it completely from a future release.




--
臧霸 呂布手下的猛將 對於台大有極深的怨恨

--
Tags: Linux

All Comments

Thomas avatar
By Thomas
at 2008-08-25T21:08
囧rz 我放在rc.local,感謝通知 ~

請問有關FORTRAN77寫程式的問題

Rachel avatar
By Rachel
at 2008-08-21T16:48
實驗室的學姊要求我用FORTRAN寫一個程式 本身不是資工出身的 所以現在才剛開始學 內容是: 把 x1.dat x2.dat output 1 2 4 0.5 2 0.5 ...

在ubuntu下安裝matlab

Daniel avatar
By Daniel
at 2008-08-21T16:10
※ [本文轉錄自 MATLAB 看板] 作者: cfleu (世事難預料) 看板: MATLAB 標題: [問題] 在ubuntu下安裝matlab 時間: Thu Aug 21 11:21:18 2008 不好意思真的被這個問題搞得很頭大.. 最近因為慢慢在習慣ubuntu..但是因為一些原因因此必須 ...

virtualbox bridge模式

Thomas avatar
By Thomas
at 2008-08-21T15:41
想請問大家,會不會把 virtualbox 的 bridge mode 啟用? 事情是這樣,我在 ubuntu 用 vbox 裝了 xp ,目的是要跑 itune 及一些非 xp 不可的 軟體,網路用的是 nat mode 當我正常裝完 xp,裝好 itune 後,當然就是按以前使用 windows 的方 ...

DNS BIND 子網域設定疑問!

Irma avatar
By Irma
at 2008-08-21T14:53
感謝各位大大的指導,尤其是kenduest大大!!我照您所說的在去檢查一次w2k的授權 結果是沒看到當初所設定的東西(七月份~真速....),在設定一次即可 在次感謝各位大大教導!! - ...

DNS BIND 子網域設定疑問!

Kumar avatar
By Kumar
at 2008-08-21T13:42
路過提醒一下,你有沒有把你自己架的 DNS server 加進 /etc/resolv.conf ?? 不然你的 ping 是不會知道要去問你架的 dns 的。 ※ 引述《jiaqing (呆呆的態)》之銘言: : 大大您好: : 我測試的結果如下: : server ip : address ip#53 ...