ntpdate from cron -- DON'T DO THAT!

看板Linux作者 (dreamer)時間17年前 (2008/08/21 22:03), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
http://0rz.tw/714Eo ntpdate from cron -- DON'T DO THAT! To: debian-user@lists.debian.org Subject: ntpdate from cron -- DON'T DO THAT! From: "N. Thomas" <nthomas@cise.ufl.edu> Date: Sat, 21 Dec 2002 18:51:24 -0500 Message-id: <20021221235124.GC11323@cise.ufl.edu> In-reply-to: <4.3.2.7.2.20021221104326.02875d18@nothnbut.net> References: <4.3.2.7.2.20021221104326.02875d18@nothnbut.net> * Sonny Kupka <sonny@nothnbut.net> [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. -- 臧霸 呂布手下的猛將 對於台大有極深的怨恨 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.160.164.69

08/21 22:20, , 1F
囧rz 我放在rc.local,感謝通知 ~
08/21 22:20, 1F
文章代碼(AID): #18hNMKqj (Linux)
文章代碼(AID): #18hNMKqj (Linux)