Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2005 09:40:42 +0800 (CST)
From:      Vincent Chen <vctw@yahoo.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   strange ntpd problem in 6.0-RELEASE
Message-ID:  <20051223014042.54290.qmail@web35806.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help

Hi, all

I have the following 2 line in my rc.conf

ntpd_enable="YES"
ntpd_flags="-c /etc/ntp.conf -p /var/run/ntpd.pid"

after system reboot, I can see ntpd running but 'ntpq -p' gives nothing. I have
to 'killall ntpd' and '/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid'
manually to get the peers connected like this.

ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*clock.isc.org   204.123.2.5      2 u  360  512   37  179.512    1.236   4.032
+ntp-nasa.arc.na .GPS.            1 u  367  512   37  178.973    0.203   5.656
+time-a.nist.gov .ACTS.           1 u  361  512   37  245.621   -0.267   4.155
 220-130-158-52. 220.130.158.50   2 u  430  512   33   52.823    7.489   5.799
+220-130-158-51. 220.130.158.50   2 u  373  512   37   50.890    6.736   2.976
-220-130-158-71. 220.130.158.70   2 u  366  512   37   54.160    6.995   7.094

Why ntpd has no peers after system first boot? Maybe it's firewall issue, can I
configure ntpd trying to talk to peers again automatically until peers
connected?

my ntp.conf:

#
# servers in US
#
server clock.isc.org prefer
server ntp.nasa.gov
server time-a.nist.gov

#
# servers in Taiwan
#
server time.stdtime.gov.tw
server tick.stdtime.gov.tw
server tock.stdtime.gov.tw

driftfile /etc/ntp.drift



Thanks, 

Vincent

___________________________________________________  最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!  http://messenger.yahoo.com.tw/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051223014042.54290.qmail>