Varnish DAEMON_OPTS Options Errors

Chris Hecker checker at
Fri May 6 07:52:13 CEST 2011

Your script still has %o and %s in it, which are going to need to be $1 
and $2 or something like that (not a bash expert).  But, that's probably 
not your problem, since it looks like it's erroring before you get to 
the command.  Maybe it will just implicitly pass %o and %s as $1 and $2 
or something.  You should replace the body of your script with an echo > 
file.txt and see how varnish is calling it.  Return an error so varnish 
will bail after calling you.  If that doesn't work, then I would browse 
the source code at the version of varnish you're running and see how it 
calls the cc_command:

The Visit: listbox will let you choose your version.


On 2011/05/05 22:44, Rudi wrote:
> Hi,
> Thanks a tonne for your replies .. still no joy though.
> 1)
> -p cc_command='/etc/varnish/ %o %s'"
> 2)
> # cat /etc/varnish/
> exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h
> -lmemcached -o %o %s
> 3)
> # /etc/init.d/varnish start
> Starting HTTP accelerator: varnishd failed!
> storage_file: filename: /var/lib/varnish/vbox.local/varnish_storage.bin
> size 512 MB.
> Too many arguments (%o...)
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at

More information about the varnish-misc mailing list