Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803242 - net-misc/ntp-4.2.8_p15 - single /etc/ntp.conf for /etc/init.d/ntpd and /etc/init.d/ntp-client
Summary: net-misc/ntp-4.2.8_p15 - single /etc/ntp.conf for /etc/init.d/ntpd and /etc/i...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-21 15:11 UTC by Dmitry A. Bakshaev
Modified: 2021-07-22 09:15 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 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 )"