From owner-freebsd-questions@FreeBSD.ORG Fri Dec 23 01:40:43 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC24416A41F for ; Fri, 23 Dec 2005 01:40:43 +0000 (GMT) (envelope-from vctw@yahoo.com) Received: from web35806.mail.mud.yahoo.com (web35806.mail.mud.yahoo.com [66.163.179.175]) by mx1.FreeBSD.org (Postfix) with SMTP id 6F0A443D55 for ; Fri, 23 Dec 2005 01:40:43 +0000 (GMT) (envelope-from vctw@yahoo.com) Received: (qmail 54292 invoked by uid 60001); 23 Dec 2005 01:40:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Xok7+XhcRIRjLSHuYrpqqAf2GweJxbydULTgO1NlWqE7RaRfSWh0+ivAEUESkkW4a3S+gZomUBOCKtncxmgM/MBKDLViV0AJR3/X4CtZvjeE2ZjXaX8elBGgHJtJYUTJs6BjOS0HovB5o28nhO0i1wHglPeBEG/Za3Et96OFkLM= ; Message-ID: <20051223014042.54290.qmail@web35806.mail.mud.yahoo.com> Received: from [220.133.1.96] by web35806.mail.mud.yahoo.com via HTTP; Fri, 23 Dec 2005 09:40:42 CST Date: Fri, 23 Dec 2005 09:40:42 +0800 (CST) From: Vincent Chen To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 23 Dec 2005 01:45:03 +0000 Cc: Subject: strange ntpd problem in 6.0-RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 01:40:44 -0000 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/