aboutsummaryrefslogtreecommitdiff
path: root/debian/tor.default
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2005-02-02 06:20:38 +0000
committerPeter Palfrader <peter@palfrader.org>2005-02-02 06:20:38 +0000
commitcbb1b33fb552ac49abbf2c7429ac462538ed25e8 (patch)
tree678a8c3a439f0739fe2a3e7ab8172c11dfab1388 /debian/tor.default
parent0551e3a814d9a2df052c430b70c1beede58bd84a (diff)
downloadtor-cbb1b33fb552ac49abbf2c7429ac462538ed25e8.tar
tor-cbb1b33fb552ac49abbf2c7429ac462538ed25e8.tar.gz
Set ulimit for file descriptors to 4096 in our init script
svn:r3501
Diffstat (limited to 'debian/tor.default')
-rw-r--r--debian/tor.default7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/tor.default b/debian/tor.default
index a9a023105..92491c2b1 100644
--- a/debian/tor.default
+++ b/debian/tor.default
@@ -8,6 +8,13 @@
RUN_DAEMON="yes"
#
+# Servers sometimes may need more than the default 1024 file descriptors
+# if they are very busy and have many clients connected to them.
+# (ulimit -n)
+#
+MAX_FILEDESCRIPTORS=4096
+
+#
# Uncomment this if you want to get coredumps
#
ulimit -c unlimited