Varnish DAEMON_OPTS Options Errors

Chris Hecker checker at d6.com
Fri May 6 07:36:26 CEST 2011


I think you need the %o and %s on the cc_command, so something like:

-p cc_command='script %o %s'

and then the script uses $1 and $2.

Chris

On 2011/05/05 22:20, Rudi wrote:
> Hi,
>
> Getting closer but still no joy:
>
> 1)
> DAEMON_OPTS="-a :8080 \
>               -T localhost:2000 \
>               -f /srv/xshare/conf/varnish-default.conf-example
>               -S /etc/varnish/secret \
>               -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,512M \
>               -p cc_command=/etc/varnish/docc.sh"
>
>
> 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.
> Message from C-compiler:
> cc: %s: No such file or directory
> Running C-compiler failed, exit 1
> VCL compilation failed
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list