]> err.no Git - varnish/commitdiff
:- is simpler than reverse negation
authoringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 17 May 2007 21:11:37 +0000 (21:11 +0000)
committeringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 17 May 2007 21:11:37 +0000 (21:11 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1448 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/redhat/varnish.initrc

index a7744d9fde47304dcd038e99df0ab2ceb67925c9..429426a963197d5829837ba5b9409b9c486c3391 100755 (executable)
@@ -24,8 +24,7 @@ DAEMON="/usr/sbin/varnishd"
 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