From 2d8e125b097f72128b4eaa821e76730a226b5682 Mon Sep 17 00:00:00 2001 From: Andrew Lewman Date: Thu, 9 Feb 2006 05:08:23 +0000 Subject: [PATCH] Force an increase in file descriptors on start svn:r5945 --- contrib/tor.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/tor.sh.in b/contrib/tor.sh.in index e9e604dd5b..771ad66ad5 100644 --- a/contrib/tor.sh.in +++ b/contrib/tor.sh.in @@ -23,6 +23,9 @@ elif [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi +# Increase open file descriptors a reasonable amount +ulimit -n 4096 + TORCTL=@BINDIR@/torctl # torctl will use these environment variables