Varnish DAEMON_OPTS Options Errors
checker at d6.com
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:
> Thanks a tonne for your replies .. still no joy though.
> -p cc_command='/etc/varnish/docc.sh %o %s'"
> # cat /etc/varnish/docc.sh
> exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h
> -lmemcached -o %o %s
> # /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 varnish-cache.org
More information about the varnish-misc