Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2007 22:40:50 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Kevin Kinsey <kdk@daleco.biz>
Cc:        stable@freebsd.org
Subject:   Re: ntpd(8) exits quietly after fork()
Message-ID:  <20070314034050.GH2435@dan.emsphone.com>
In-Reply-To: <45F70631.2010404@daleco.biz>
References:  <45F70631.2010404@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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