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

Bug 346709

Summary: Options in Initscript with start-stop-daemon
Product: [OLD] Docs on www.gentoo.org Reporter: wannespam
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4
Whiteboard:
Package list:
Runtime testing required: ---

Description wannespam 2010-11-24 23:24:27 UTC
I've tryed to write a Initscript with this documentation. 
It would be helpful if there would be added that you have to add options after two -- when you use start-stop-daemon. 
like this: start-stop-daemon --start --exec /usr/bin/rsync --pidfile /var/run/rsyncd.pid -- --daemon ${RSYNC_OPTS} 
instead of start-stop-daemon --start --exec '/usr/bin/rsync --daemon ${RSYNC_OPTS}' --pidfile /var/run/rsyncd.pid. 
The most users will know it but mybe not everyone. Especially these ones who need this documentation can have problems like me. 
It's also missing in the German documentation.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 nm (RETIRED) gentoo-dev 2010-11-30 22:53:06 UTC
There's nothing in any of our guides about a call to "/usr/bin/rsync --daemon" much less the "incorrect" version you posted with ${RSYNC_OPTS}. Can you please specify where exactly in the guide you see this problem, and restate what you think it should be? I realize English is not your first language, so you may want to talk to one of our German translators who can interpret for me. Thanks!
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2010-12-01 17:01:00 UTC
He's suggesting that the guide could be improved by specifying that additional options for the daemon to be launched should be separated by "--", otherwise they'd get interpreted by s-s-d.
Comment 3 nm (RETIRED) gentoo-dev 2010-12-02 00:50:42 UTC
Since we don't talk about s-s-d and a specific program, we don't need to cover additional options in the handbook. We'd be duplicating content at the very beginning of the s-s-d manpage:

"Any arguments given after -- on the command line are passed unmodified to the program being started."

Works as-is for me . . .