Commit 86636e2d authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Copy NFILES knob from redhat/varnish.initrc.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1456 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 64f4a771
......@@ -4,6 +4,9 @@
# 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
......
......@@ -31,6 +31,9 @@ if [ -f /etc/default/varnish ] ; then
. /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.)
......
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