Re: ntpdate from cron -- DON'T DO THAT!

看板Linux作者 (林約翰)時間17年前 (2008/08/22 09:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《depository (dreamer)》之銘言: : 標題: ntpdate from cron -- DON'T DO THAT! : 時間: Thu Aug 21 22:02:58 2008 ^^^^2008 : 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 ^^^^2002 : 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> : 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. : 推 Bencrie:囧rz 我放在rc.local,感謝通知 ~ 08/21 22:20 ^^^^^^^^^^^^ http://www.linuxmanpages.com/man1/ntpdate.1.php or [ man ntpdate ] ntpdate can be run manually as necessary to set the host clock, or it can be ^^^^^^^^^ run from the host startup script to set the clock at boot time. This is ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ useful in some cases to set the clock initially before starting the NTP daemon ntpd . It is also possible to run ntpdate from a cron script. However, it is important to note that ntpdate with contrived cron scripts is no ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ substitute for the NTP daemon, which uses sophisticated algorithms to ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ maximize accuracy and reliability while minimizing resource use. Finally, since ntpdate does not discipline the host clock frequency as does ntpd , the accuracy using ntpdate is limited. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.221.140.178
文章代碼(AID): #18hX0UG2 (Linux)
文章代碼(AID): #18hX0UG2 (Linux)