From owner-freebsd-stable@FreeBSD.ORG Wed Mar 14 04:14:03 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 9B1E716A401 for ; Wed, 14 Mar 2007 04:14:03 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 658C813C46C for ; Wed, 14 Mar 2007 04:14:03 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l2E3eoES027024 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Mar 2007 22:40:51 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l2E3eoUQ026999; Tue, 13 Mar 2007 22:40:50 -0500 (CDT) (envelope-from dan) Date: Tue, 13 Mar 2007 22:40:50 -0500 From: Dan Nelson To: Kevin Kinsey Message-ID: <20070314034050.GH2435@dan.emsphone.com> References: <45F70631.2010404@daleco.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F70631.2010404@daleco.biz> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) 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: Wed, 14 Mar 2007 04:14:03 -0000 In the last episode (Mar 13), Kevin Kinsey said: > 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) It seems you're missing the -i flag to ktrace, which means you aren't tracing the child of this fork operation. This ktrace output looks a lot like the code in ntpd.c:ntpdmain(), in which ntpd forks, the parent immediately exits, and the child continues. -- Dan Nelson dnelson@allantgroup.com