<div><font face="courier new,monospace">Hey Adan,</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">Thanks for reply. I will review all my configuration.<br></font></div>
<div class="gmail_quote"><font face="courier new,monospace">2009/11/2 andan andan <span dir="ltr"><a href="mailto:armdan20@gmail.com">armdan20@gmail.com</a></span><br></font>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><font face="courier new,monospace"></font> </div><font face="courier new,monospace">You are using an old syntax, backend syntax has changed.<br><br>backend default {<br> .host = "localhost";<br>
.port = "80";<br>}<br></font></blockquote></div>
<div><font face="courier new,monospace">BTW, I was asked what do I use to start varnish and what varnishlog output. Well varnishlog does not give any output and my init script is as follow:</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">#! /bin/sh<br>#<br># varnish Control the varnish HTTP accelerator<br>#<br># chkconfig: - 90 10<br># description: HTTP accelerator<br># processname: varnishd<br># config: /etc/varnish/vcl.conf<br>
# pidfile: /var/run/varnish/varnishd.pid</font></div>
<div><font face="courier new,monospace"># Source function library.<br>. /etc/init.d/functions</font></div>
<div><font face="courier new,monospace">RETVAL=0<br>PROCNAME=varnishd<br>PIDFILE=/var/run/varnish.pid<br>LOCKFILE=/var/lock/subsys/varnish</font></div>
<div><font face="courier new,monospace"># Include varnish defaults<br>. /etc/sysconfig/varnish</font></div>
<div><font face="courier new,monospace">DAEMON="/usr/sbin/varnishd"</font></div>
<div><font face="courier new,monospace">mkdir -p /var/run/varnish 2>/dev/null</font></div>
<div><font face="courier new,monospace"># Open files (usually 1024, which is way too small for varnish)<br>ulimit -n ${NFILES:-131072}</font></div>
<div><font face="courier new,monospace"># See how we were called.<br>case "$1" in<br> start)<br> echo -n "Starting varnish HTTP accelerator: "</font></div>
<div><font face="courier new,monospace"> # $DAEMON_OPTS is set in /etc/sysconfig/varnish. At least, one<br> # has to set up a backend, or /tmp will be used, which is a bad idea.<br> if [ "$DAEMON_OPTS" = "" ]; then<br>
echo "\$DAEMON_OPTS empty."<br> echo -n "Please put configuration options in /etc/sysconfig/varnish"<br> echo_failure<br> else<br> daemon ${DAEMON} "$DAEMON_OPTS" -P ${PIDFILE} > /dev/null 2>&1<br>
sleep 1<br> pkill -0 $PROCNAME<br> RETVAL=$?<br> if [ $RETVAL -eq 0 ]<br> then<br> echo_success<br> touch $LOCKFILE<br> else<br>
echo_failure<br> fi<br> fi<br> echo<br> ;;<br> stop)<br> echo -n "Stopping varnish HTTP accelerator: "<br> killproc $DAEMON<br> RETVAL=$?<br>
if [ $RETVAL -eq 0 ]<br> then<br> echo_success<br> rm -f $LOCKFILE $PIDFILE<br> else<br> echo_failure<br> fi<br> echo<br> ;;<br> status)<br>
status $PROCNAME<br> RETVAL=$?<br> ;;<br> restart|reload)<br> $0 stop<br> $0 start<br> RETVAL=$?<br> ;;<br> condrestart)<br> if [ -f $PIDFILE ]; then<br> $0 stop<br>
$0 start<br> RETVAL=$?<br> fi<br> ;;<br> *)<br> echo "Usage: $0 {start|stop|status|restart|condrestart}"<br> exit 1<br>esac</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">.Vladimir<br></font></div>