packages: varnish/varnishncsa.init - support $LOG_BACKEND, $LOG_CLIENT

glen glen at pld-linux.org
Mon Jul 20 16:00:09 CEST 2009


Author: glen                         Date: Mon Jul 20 14:00:09 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- support $LOG_BACKEND, $LOG_CLIENT

---- Files affected:
packages/varnish:
   varnishncsa.init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/varnish/varnishncsa.init
diff -u packages/varnish/varnishncsa.init:1.2 packages/varnish/varnishncsa.init:1.3
--- packages/varnish/varnishncsa.init:1.2	Mon Jul 20 15:41:38 2009
+++ packages/varnish/varnishncsa.init	Mon Jul 20 16:00:04 2009
@@ -27,8 +27,17 @@
 		return
 	fi
 
+	local opts
+	if is_yes "${LOG_BACKEND}"; then
+		opts="$opts -b"
+	fi
+
+	if is_yes "${LOG_CLIENT}"; then
+		opts="$opts -c"
+	fi
+
 	msg_starting "Varnish NCSA logging daemon"
-	daemon --pidfile=$pidfile /usr/bin/varnishncsa -a -w $logfile -D -P $pidfile
+	daemon --pidfile=$pidfile /usr/bin/varnishncsa -a -w $logfile -D -P $pidfile $opts
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/varnishncsa
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/varnish/varnishncsa.init?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list