Hi,
If you want to factor the --chdir argument, you can go back to your
previous solution:
args="--start --nicelevel $nice --chdir '$PWD' --quiet --oknodo"
but then, you need to eval your calls to s-s-d (and over quoting the last
arguments):
eval /sbin/start-stop-daemon $args '--startas $exec --pidfile /dev/null -- "$@"'
This will works with space in PWD. However, there will still be some
problems if PWD contains '
To be robust, you can use:
args="--start --nicelevel $nice --chdir \"\$PWD\" --quiet --oknodo"
and
eval /sbin/start-stop-daemon $args '--startas $exec --pidfile /dev/null -- "$@"'
Regards,
Vincent
--
Vincent Danjean GPG key ID 0x9D025E87 [email protected]
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://www-id.imag.fr/~danjean/deb.html#package
APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]