git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1456
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# shell script fragment.
#
+# Maximum number of open files (for ulimit -n)
+NFILES=131072
+
# This file contains 4 alternatives, please use only one.
## Alternative 1, Minimal configuration, no VCL
. /etc/default/varnish
fi
+# Open files (usually 1024, which is way too small for varnish)
+ulimit -n ${NFILES:-131072}
+
# 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.)