Re: start-stop-daemon and quoting in arguments
On Tue, 12 Feb 2002 02:54:53 +0100, Karsten Heymann <karsten.heymann@gmx.de> wrote:
> Hi list,
>
> somehow I'm lost with start-stop-daemon and quoting. I'm trying to let
> a self-recompiled slapd server both ldap and ldaps. When invoked from
> the command line with
>
> slapd -d 255 -h "ldap:/// ldaps:///"
>
> the debug output shows that both options are accepted. But I don't
> manage to create that line with start-stop-daemon. I've tried any
> combination of quoting the '"', the blank between the two entries or
> quoting nothing, none of them worked. Some examples:
>
> start-stop-daemon --start --exec /usr/bin/slapd -- -h "ldap:/// ldaps:///"
> start-stop-daemon --start --exec /usr/bin/slapd -- -h "\"ldap:/// ldaps:///\""
> start-stop-daemon --start --exec /usr/bin/slapd -- -h "ldap:///\ ldaps:///"
> start-stop-daemon --start --exec /usr/bin/slapd -- -h "ldap:///\\ ldaps:///"
>
> None of them worked. I feel really stuck. Please help me :-}
MYARG="ldap:/// ldaps:///"
DAEMON=/usr/bin/slapd
test -x $DAEMON || exit 0
...
start-stop-daemon --start --exec $DAEMON -- -h "$MYARG"
...
Single quotes also work 'ldap:/// ldaps:///'
--
Eric G. Miller <egm2@jps.net>
Reply to: