[BusyBox] start_stop_daemon options to daemon

Joerg Schmitz-Linneweber schmitz-linneweber at aston-technologie.de
Wed May 15 00:36:03 UTC 2002


Hi!

On Tuesday, 14. May 2002 20:51, Axel Barnitzke wrote:
> Sorry for that stupid question, but it seems I'm to blind
> to parse options to the programm to start via start-stop-daemon.
>
> ex:
>
> start-stop-daemon -S -x /sbin/syslogd -C
>                                        ^^^
> Has anybody done this before ?
If I understand GNU getopt right (and if the BB version of getopt is 
compatible :-) then you could "end" your options to start-stop-daemon with a 
"--". Everything afterwards will not get interpreted by that getopt.
So perhaps a 
<pre>
start-stop-daemon -S -x /sbin/syslogd -- -C
</pre>
works?

After having written the above I understand that`s *not* the solution :-)
You'll have to say start_stop_daemon that syslog _and_ -C are *one* option!
So perhaps a 
<pre>
start-stop-daemon -S -x "/sbin/syslogd -C"
</pre>
does the job. Or perhaps you'll have to use "some other" quotes...

HTH. Salut, Jörg

-- 
Joerg Schmitz-Linneweber
gpg/pgp key id: 0x146428F1
ASTON GmbH, Ruhrorter Straße 9, 46049 Oberhausen, Germany
Tel. +49 (208) 6201930, FAX +49 (208) 6201950, http://www.aston-technologie.de



More information about the busybox mailing list