Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64171 - When you emerge NTP v4.2.x, the /usr/share/ntp.conf config file will have multiple restrict lines.
Summary: When you emerge NTP v4.2.x, the /usr/share/ntp.conf config file will have mu...
Status: RESOLVED DUPLICATE of bug 65502
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-15 13:03 UTC by Oliver F J Snowden
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***