summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2006-02-09 05:08:23 +0000
committerAndrew Lewman <andrew@torproject.org>2006-02-09 05:08:23 +0000
commit2d8e125b097f72128b4eaa821e76730a226b5682 (patch)
tree828e8d6a5a96d329e812aef72e7446d950900ff1
parentee2966d850144993259ef4d951801622a4d2835a (diff)
downloadtor-2d8e125b097f72128b4eaa821e76730a226b5682.tar.gz
tor-2d8e125b097f72128b4eaa821e76730a226b5682.zip
Force an increase in file descriptors on start
svn:r5945
-rw-r--r--contrib/tor.sh.in3
1 files changed, 3 insertions, 0 deletions
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