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

Bug 54564

Summary: Using netselect to choose ntp server from *.pool.ntp.org in /etc/init.d/ntpd
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.pool.ntp.org/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to /etc/init.d/ntpd adding the choose_servers function

Description Martin von Gagern 2004-06-20 14:55:15 UTC
I have extended my ntpd init script to choose three close ntp servers from the pool provided by *.pool.ntp.org. In my /etc/conf.d/ntpd I simply set POOL=de.pool.ntp.org and have three nearby ntp servers entered in my /etc/ntpd.conf

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin von Gagern 2004-06-20 14:56:16 UTC
Created attachment 33679 [details, diff]
Patch to /etc/init.d/ntpd adding the choose_servers function
Comment 2 SpanKY gentoo-dev 2004-07-17 22:55:48 UTC
although this is a pretty good idea it suffers from some problems, the biggest of which is that the current implementation will keep adding server lines to ntp.conf 

i've updated the example ntp.conf file to no longer list the old URL's but to read this:
##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
##