Varnish DAEMON_OPTS Options Errors and Debian startup script

Cosimo Streppone cosimo at
Wed Nov 30 23:10:20 CET 2011

This thread about starting up varnish with a custom cc_command:

was never "closed".

I think I found the cause of the problem.

Due to the way $DAEMON_OPTS is included in the start-stop-daemon command,
and because of bash vs dash differences, if your default shell is dash
the command is not expanded correctly.

Copying and pasting exactly the same 'start-stop-daemon' command
in a bash shell works just fine.

If other people could confirm that this workaround works for them,
maybe we could even file a bug in Debian.


More information about the varnish-misc mailing list