Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493032 - =net-misc/openntpd-20080406-r5 - init script ignores $NTPD_OPTS from /etc/conf.d/ntpd
Summary: =net-misc/openntpd-20080406-r5 - init script ignores $NTPD_OPTS from /etc/con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Junghans (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 15:35 UTC by Thomas Deutschmann (RETIRED)
Modified: 2013-12-02 13:33 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 Thomas Deutschmann (RETIRED) gentoo-dev 2013-12-01 15:35:00 UTC
Hi,

1) # emerge =net-misc/openntpd-20080406-r5

2) # cat /etc/conf.d/ntpd
# /etc/conf.d/ntpd: config file for openntpd's ntpd

# See ntpd(8) man page ... some popular options:
#  -s   Set the time immediately at startup
NTPD_OPTS=""


3) Now add "-v" to NTPD_OPTS, because you want to see verbose output.

4) Restart (open)ntpd

5) NTPD_OPTS is ignored (verify using 'ps' or check logs for verbose output)

If you compare =net-misc/openntpd-20080406-r5 with previous versions you will notice that the runscript doesn't set "NTPD_OPTS" as "command_args". In other words, adding

  command_args="${NTPD_OPTS}"

to "/etc/init.d/ntpd" will fix the problem.

Reproducible: Always
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2013-12-02 13:33:30 UTC
+*openntpd-20080406-r6 (02 Dec 2013)
+
+  02 Dec 2013; Christoph Junghans <ottxor@gentoo.org>
+  +files/openntpd-20080406-pidfile.patch, +files/openntpd.conf.d-20080406-r6,
+  +files/openntpd.init.d-20080406-r6, +openntpd-20080406-r6.ebuild,
+  -openntpd-20080406-r5.ebuild:
+  added pidfile support (bug #493082), fixed ignored NTPD_OPTS for USE=syslog
+  (bug #493032)
+