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

Bug 803242

Summary: net-misc/ntp-4.2.8_p15 - single /etc/ntp.conf for /etc/init.d/ntpd and /etc/init.d/ntp-client
Product: Gentoo Linux Reporter: Dmitry A. Bakshaev <dab1818>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dmitry A. Bakshaev 2021-07-21 15:11:11 UTC
by default /etc/init.d/ntp-client has separate from /etc/ntp.conf server list in /etc/conf.d/ntp-client

Reproducible: Always

Steps to Reproduce:
1 show servers from /etc/ntp.conf : grep ^server /etc/ntp.conf
2 show servers from /etc/conf.d/ntp-client : cat /etc/conf.d/ntp-client

Actual Results:  
same servers speciefed in two places

Expected Results:  
one servers list in /etc/ntp.conf

replace NTPCLIENT_OPTS in /etc/conf.d/ntp-client to read servers from ntp.conf 
for example:
NTPCLIENT_OPTS="-s -b -u $( awk '$1 ~ "^server" {print $2}' /etc/ntp.conf )"