Re: ntpdate on boot problem

看板FB_questions作者時間14年前 (2011/11/06 06:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/17 (看更多)
On Sat Nov 5 11, Robert Simmons wrote: > Is there a way to make sure that the interface is UP and working > before running ntpdate at boot on a box with a static IP address? > > After setting ntpdate_enable="YES" in rc.conf, I get the following > error on boot: > > Setting date via ntp. > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 0.freebsd.pool.ntp.org > > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 1.freebsd.pool.ntp.org > > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 2.freebsd.pool.ntp.org > > 5 Nov 17:11:05 > ntpdate[786]: no servers can be used, exiting > > I've had this problem with machines using DHCP and the solution was to > use SYNCDHCP rather than DHCP in rc.conf. However, this box is using > a static IP address. But the problem seems to be similar. same here. simply add something like the following to your crontab: 0 10 * * */2 /etc/rc.d/ntpdate onestart cheers. alex > > Rob _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1EjRbYOY (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1EjRbYOY (FB_questions)