Mailing List Archive

r1448 - trunk/varnish-cache/redhat
Author: ingvar
Date: 2007-05-17 23:11:37 +0200 (Thu, 17 May 2007)
New Revision: 1448

Modified:
trunk/varnish-cache/redhat/varnish.initrc
Log:
:- is simpler than reverse negation

Modified: trunk/varnish-cache/redhat/varnish.initrc
===================================================================
--- trunk/varnish-cache/redhat/varnish.initrc 2007-05-17 18:17:12 UTC (rev 1447)
+++ trunk/varnish-cache/redhat/varnish.initrc 2007-05-17 21:11:37 UTC (rev 1448)
@@ -24,8 +24,7 @@
mkdir -p /var/run/varnish 2>/dev/null

# Open files (usually 1024, which is way too small for varnish)
-[ ! "${NFILES}" ] && NFILES="131072"
-ulimit -n ${NFILES}
+ulimit -n ${NFILES:-131072}

# See how we were called.
case "$1" in