git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2586
d4fa192b-c00b-0410-8231-
f00ffab90ce4
INSTANCE=$(uname -n)
# Uncomment this to enable varnishlog. Please make sure you have
-# enough disk space for significant amounts of log data.
-# VARNISHLOG_ENABLE=1
+# enough disk space for significant amounts of log data. To disable
+# varnishlog, set the variable to "0", "no", or leave it unset.
+# VARNISHLOG_ENABLED=1
# This file contains 4 alternatives, please use only one.
. /etc/default/varnish
fi
-# If unset or not 1, exit
-if [ -z "${VARNISHLOG_ENABLED}" -o "${VARNISHLOG_ENABLED}" -ne "1" ]; then
+# If unset, or set to "0" or "no", exit
+if [ -z "${VARNISHLOG_ENABLED}" -o "${VARNISHLOG_ENABLED}" == "0" \
+ -o "${VARNISHLOG_ENABLED}" == "no" ]; then
exit 0;
fi