Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2007 14:18:23 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Kevin Kinsey <kdk@daleco.biz>
Cc:        stable@freebsd.org
Subject:   Re: ntpd(8) exits quietly after fork()
Message-ID:  <D207BD8A-51B3-4AD8-85A8-4B0C96533B95@mac.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
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D207BD8A-51B3-4AD8-85A8-4B0C96533B95>