git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2520
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# the -n switch, to have more instances on a single server.
INSTANCE=$(uname -n)
+# Uncomment this to enable varnishlog. Please sure you have enough disk space
+# for significant amounts of log data.
+# VARNISHLOG_ENABLE=1
+
# This file contains 4 alternatives, please use only one.
## Alternative 1, Minimal configuration, no VCL
PIDFILE=/var/run/$NAME.pid
LOGFILE=/var/log/varnish/varnish.log
+# Include varnish defaults if available
+if [ -f /etc/default/varnish ] ; then
+ . /etc/default/varnish
+fi
+
+# If unset or not 1, exit
+if [ -z "${VARNISHLOG_ENABLED}" -o "${VARNISHLOG_ENABLED}" -ne "1" ]; then
+ exit 0;
+fi
+
test -x $DAEMON || exit 0
DAEMON_OPTS="-a -w ${LOGFILE} -D -P $PIDFILE"