From owner-freebsd-stable@FreeBSD.ORG Tue Mar 13 22:02:14 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 14DAF16A401 for ; Tue, 13 Mar 2007 22:02:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id E105713C45B for ; Tue, 13 Mar 2007 22:02:13 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (relay8.apple.com [17.128.113.38]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l2DLIOG2027593; Tue, 13 Mar 2007 14:18:24 -0700 (PDT) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id ABE6140080; Tue, 13 Mar 2007 14:18:24 -0700 (PDT) X-AuditID: 11807126-a279dbb0000007dd-92-45f7152007a7 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay8.apple.com (Apple SCV relay) with ESMTP id 96FF740029; Tue, 13 Mar 2007 14:18:24 -0700 (PDT) In-Reply-To: <45F70631.2010404@daleco.biz> References: <45F70631.2010404@daleco.biz> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 13 Mar 2007 14:18:23 -0700 To: Kevin Kinsey X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: stable@freebsd.org Subject: Re: ntpd(8) exits quietly after fork() X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 22:02:14 -0000 Hi, Kevin-- On Mar 13, 2007, at 1:14 PM, Kevin Kinsey wrote: > ntpd won't continue running on my "stratum 2" server (making our > other systems a tad untrustworthy "as time goes by"). > > $ uname -a > FreeBSD ezekiel.daleco.biz 6.2-RELEASE FreeBSD 6.2-RELEASE #5: Sat > Jan 20 16:41:42 CST 2007 root@ezekiel.daleco.biz:/usr/obj/usr/src/ > sys/GENERIC i386 > > using ktrace and kdump I get this prior to exit: [ ... ] The logging paths seen in the ktrace are rather non-standard-- perhaps ntpd doesn't have the right permissions to write to them? Normally, ntpd logs to the NTP facility and critical messages might appear in /var/log/messages, so additional clues are probably there. Showing your ntp.conf file would also help, but if you'd like to see an example of a working stratum-2 conf file which has been in use for quite some time: 1-pi# cat /etc/ntp.conf # /etc/ntp.conf, configuration for ntpd driftfile /etc/ntp.drift statsdir /var/log/ntp/ statistics sysstats filegen sysstats file sysstats type week enable #logconfig =syncevents +sysevents # +allclock #statistics loopstats peerstats clockstats #filegen loopstats file loopstats type day enable #filegen peerstats file peerstats type day enable #filegen clockstats file clockstats type day enable server time.nist.gov maxpoll 12 server bonehed.lcs.mit.edu maxpoll 12 server sundial.columbia.edu maxpoll 12 server wwv.otc.psu.edu maxpoll 12 #peer pi.codefab.com maxpoll 12 peer pong.codefab.com maxpoll 12 peer shot.codefab.com maxpoll 12 peer ns1.pkix.net maxpoll 12 restrict default nomodify restrict localhost #discard average 9 minimum 2 #restrict default limited restrict 64.152.61.123 kod # ...list of bad clients being fed "kod" or "ignore" trimmed... 2-pi# grep ntp /etc/syslog.conf ntp.debug /var/log/ntp/ntp.log 3-pi# ntpq -p remote refid st t when poll reach delay offset jitter ======================================================================== ====== -time.nist.gov .ACTS. 1 u 41m 68m 37 49.991 7.961 0.580 *bonehed.lcs.mit .CDMA. 1 u 204 68m 377 20.057 -2.610 6.201 +hickory.cc.colu 128.59.39.48 2 u 245 68m 377 25.537 -1.196 7.415 -otc1.psu.edu .WWV. 1 u 276 68m 377 36.047 -21.679 0.037 +pong 18.145.0.30 2 u 274 1024 377 0.257 -3.274 2.857 +shot 65.212.71.103 2 u 495 1024 377 0.343 1.467 0.664 -ns1 129.6.15.29 2 u 929 1024 376 0.389 -5.890 0.769 For more details, one could also see: http://ntp1.codefab.com/ntpstats/ntp_stats.txt http://www.pool.ntp.org/scores/199.103.21.227 -- -Chuck