git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2580
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# Maximum number of open files (for ulimit -n)
NFILES=131072
+# Maximum locked memory size (for ulimit -l)
+# Used for locking the shared memory log in memory. If you increase log size,
+# you need to increase this number as well
+MEMLOCK=82000
+
# Default varnish instance name is the local nodename. Can be overridden with
# the -n switch, to have more instances on a single server.
INSTANCE=$(uname -n)
# Open files (usually 1024, which is way too small for varnish)
ulimit -n ${NFILES:-131072}
+# Maxiumum locked memory size for shared memory log
+ulimit -l ${MEMLOCK:-82000}
+
# If $DAEMON_OPTS is not set at all in /etc/default/varnish, use minimal useful
# defaults (Backend at localhost:8080, a common place to put a locally
# installed application server.)