Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54564 - Using netselect to choose ntp server from *.pool.ntp.org in /etc/init.d/ntpd
Summary: Using netselect to choose ntp server from *.pool.ntp.org in /etc/init.d/ntpd
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: SpanKY
URL: http://www.pool.ntp.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 14:55 UTC by Martin von Gagern
Modified: 2004-07-17 22:55 UTC (History)
0 users

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


Attachments
Patch to /etc/init.d/ntpd adding the choose_servers function (ntpd.diff,1.19 KB, patch)
2004-06-20 14:56 UTC, Martin von Gagern
Details | Diff

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