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:

http://www.varnish-cache.org/trac/browser

The Visit: listbox will let you choose your version.

Chris



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/docc.sh %o %s'"

2)
# cat /etc/varnish/docc.sh
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
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to