Hi,
On 5/6/2011 1:52 PM, Chris Hecker wrote: > > 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. Yes will have to dig deeper. It doesn't appear to be implicitly passing any variables: 1) -p cc_command=/etc/varnish/docc.sh" 2a) # cat /etc/varnish/docc.sh exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h -lmemcached -o $1 $2 OR 2b) # cat /etc/varnish/docc.sh #!/bin/bash exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h -lmemcached -o $1 $2 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: argument to '-o' is missing Running C-compiler failed, exit 1 VCL compilation failed It does appear '-p cc_command= ' wants a single input and not a space separated list like -p cc_command='/etc/varnish/docc.sh %o %s'" . I will have a look at the source code from the link you provided. I'm not much of a C programmer so if it's a dead end for me perhaps I'll just try re-write these debian start scripts into something simpler. If I just use the command line everything starts fine so maybe I should just work with that. Ex: varnishd -f /srv/xshare/conf/varnish-default.conf-example -s file,/var/lib/varnish/varnish_storage.bin,512M -T 127.0.0.1:2000 -a 0.0.0.0:8080 -p 'cc_command=exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h -lmemcached -o %o %s' storage_file: filename: /var/lib/varnish/varnish_storage.bin size 512 MB. Using old SHMFILE vbox:~# ps ax| grep varn 5607 ? Ss 0:00 varnishd -f /srv/xshare/conf/varnish-default.conf-example -s file,/var/lib/varnish/varnish_storage.bin,512M -T 127.0.0.1:2000 -a 0.0.0.0:8080 -p cc_command exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h -lmemcached -o %o %s 5608 ? Sl 0:00 varnishd -f /srv/xshare/conf/varnish-default.conf-example -s file,/var/lib/varnish/varnish_storage.bin,512M -T 127.0.0.1:2000 -a 0.0.0.0:8080 -p cc_command exec cc -fpic -shared -Wl,-x -L/usr/include/libmemcached/memcached.h -lmemcached -o %o %s Thanks again. _______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
