Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64171

Summary: When you emerge NTP v4.2.x, the /usr/share/ntp.conf config file will have multiple restrict lines.
Product: Gentoo Linux Reporter: Oliver F J Snowden <oliversnowden>
Component: [OLD] ServerAssignee: SpanKY <vapier>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oliver F J Snowden 2004-09-15 13:03:14 UTC
It is evident from: http://gentoo-wiki.com/HOWTO_NTP that this is a known problem. 

Basically, NTP v4.2.x doesn't support multiple restrict lines. Therefore, when the default /usr/share/ntp/ntp.conf is copied to /etc/ntp.conf, it doesn't work because "restrict default notrust nomodify" and "restrict 127.0.0.1" need to be combined into "restrict 127.0.0.1 notrust nomodify".

Without performing the above correction, when one types "ntpq -np", the jitter is set to 4000 and the output looks something like: 

remote refid st t when poll reach delay offset jitter                                  
===================================================                                    
tock.usno.navy 0.0.0.0 16 u - 64 0 0.000 0.000 4000.00




Reproducible: Always
Steps to Reproduce:
1. emerge ntp
2. cp /usr/share/ntp/ntp.conf
3. /etc/init.d/ntpd start

Actual Results:  
remote refid st t when poll reach delay offset jitter                          
       
===================================================                            
       
tock.usno.navy 0.0.0.0 16 u - 64 0 0.000 0.000 4000.00

Expected Results:  
4000 should be closer to 0!

This is only a minor issue - although it does waste time!
Comment 1 Oliver F J Snowden 2004-09-15 13:15:07 UTC
Steps to Reproduce should be:
1. emerge ntp
2. cp /usr/share/ntp/ntp.conf /etc/ntp.conf
3. /etc/init.d/ntpd start
Comment 2 SpanKY gentoo-dev 2004-11-09 07:30:22 UTC

*** This bug has been marked as a duplicate of 65502 ***