Debian packaging: Disable running of varnishlog by default

git-svn-id: http://www.varnish-cache.org/svn/trunk@2520 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 65a4ed61
......@@ -11,6 +11,10 @@ NFILES=131072
# 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
......
......@@ -22,6 +22,16 @@ DAEMON=/usr/bin/$NAME
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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment