Hi,<br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 3:52 PM, Anderson Brown <span dir="ltr"><<a href="mailto:andersonbrown8@gmail.com">andersonbrown8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Thanks Per! Looking at <a href="http://varnish-cache.org/docs/trunk/reference/varnishd.html" target="_blank">http://varnish-cache.org/docs/trunk/reference/varnishd.html</a>; it seems I just need to add this in /etc/sysconfig/varnish:<br>
<br>DAEMON_OPTS="-a :7081 \<br> -T localhost:7082 \<br> -f /etc/varnish/default.vcl \<br> -p http_headers=128 \ ### NOT WORK?<br> -p cli_buffer=8192 \ ### WORKS OK<br>
-u varnish -g varnish \<br> -s file,/var/lib/varnish/varnish_storage.bin,1G"<br></blockquote><div><br></div><div>Right.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
However, when I try to restart:<br><br>root@machine>/etc/init.d/varnish restart<br>Stopping varnish HTTP accelerator: [ OK ]<br>
Starting varnish HTTP accelerator: [FAILED]<br><br>I see nothing in /var/log/messages nor in varnishlog.<br></blockquote><div><br></div><div>It should be logged somewhere, if not - that would be a bug. I'm not sure where it would be appropriate to log such things on RHEL.</div>
<div><br></div><div>wrt the parameter - I _think_ this was made a run-time option in 2.1. It was a compile time option in 2.0. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>root@machine>varnishd -V<br>varnishd (varnish-2.0.6)<br>Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS<br>
<br>Am I using an older version? Just did the varnish install via yum-EPEL.<br></blockquote><div><br></div><div>As 2.1 is not 100% compatible with 2.0 EPEL for EL 5.0 is stuck on 2.0. However, there are RPM's available.</div>
<div><br></div><div><br></div></div>-- <br><div>Per Buer, Varnish Software<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer</div><br>