Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74195 - openntpd-3.6.1_p1 has bug in rc script
Summary: openntpd-3.6.1_p1 has bug in rc script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-12 07:12 UTC by Holger Hoffstätte
Modified: 2004-12-12 13:26 UTC (History)
1 user (show)

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 Holger Hoffstätte 2004-12-12 07:12:15 UTC
openntpd 3.6.1_p1 has a new option -s to sync the time at startup. when -s is added to conf.d/ntpd:NTPD_OPTS, the init script complains about a syntax error. Culprit is line 32 which is missing -- to separate the start-stop daemon args from the executable args. Adding -- before ${NTPD_OPTS} fixes the problem.


Reproducible: Always
Steps to Reproduce:
1. emerge openntpd-2.6.1_p1
2. add -s to NTPD_OPTS
3. start /etc/init.d/ntpd, watch it complain

Actual Results:  
root>/etc/init.d/ntpd start   
 * Starting ntpd...
start-stop-daemon: option requires an argument -- s
Try `start-stop-daemon --help' for more information.
 * Failed to start ntpd                                                        
                                 


Expected Results:  
start ntpd correctly :)
Comment 1 SpanKY gentoo-dev 2004-12-12 13:26:16 UTC
thanks, fixed in cvs