From owner-freebsd-stable@FreeBSD.ORG Tue Mar 13 20:49: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 0669C16A402 for ; Tue, 13 Mar 2007 20:49:14 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id B0CC813C458 for ; Tue, 13 Mar 2007 20:49:13 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from archangel.daleco.biz ([69.27.149.254]) by ezekiel.daleco.biz (8.13.8/8.13.1) with ESMTP id l2DKEiTC025495 for ; Tue, 13 Mar 2007 15:14:49 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <45F70631.2010404@daleco.biz> Date: Tue, 13 Mar 2007 15:14:41 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2pre) Gecko/20070221 SeaMonkey/1.1 MIME-Version: 1.0 To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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 20:49:14 -0000 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: 12195 ntpd NAMI "/var/run/logpriv" 12195 ntpd RET connect 0 12195 ntpd CALL sendto(0x4,0xbfbfdd50,0x3e,0,0,0) 12195 ntpd GIO fd 4 wrote 62 bytes "<13>Mar 13 13:32:06 ntpd: logging to file /home/kadmin/ntp.log" 12195 ntpd RET sendto 62/0x3e 12195 ntpd CALL clock_gettime(0,0xbfbfeb08) 12195 ntpd RET clock_gettime 0 12195 ntpd CALL sigaction(0x1,0xbfbfeac0,0xbfbfeae0) 12195 ntpd RET sigaction 0 12195 ntpd CALL fork 12195 ntpd RET fork 12196/0x2fa4 12195 ntpd CALL exit(0) After this, I can't `pgrep ntpd` or find a pid with "ps -aux". I've found nothing in the logs; even using "-l $HOME/ntp.log". A windows box complains "no response" using Softros' "NTS". `ntpq -p" here shows ntpq -p remote refid st t when poll reach delay offset jitter ======================================================================== ezekiel.daleco. .INIT. 16 u 148 1024 0 0.000 0.000 4000.00 I can confirm that ntpd will continue to run if called with "-n" (do not fork). I've started a "buildworld" cycle. Any other suggestions? Can I do anything else "debugging" wise? Machine is about as close to "production" as we get, so rebuild with a debug kernel isn't something we'd really want to do, I think.... Thanks, Kevin Kinsey -- Computer programmers do it byte by byte.