aboutsummaryrefslogtreecommitdiff
path: root/debian/tor.init
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.init
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.init')
-rw-r--r--debian/tor.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/tor.init b/debian/tor.init
index 3763996f9..93fb37544 100644
--- a/debian/tor.init
+++ b/debian/tor.init
@@ -10,6 +10,7 @@ TORPID=/var/run/tor/tor.pid
DEFAULTSFILE=/etc/default/$NAME
WAITFORDAEMON=10
ARGS=""
+MAX_FILEDESCRIPTORS=4096
test -x $DAEMON || exit 0
@@ -49,6 +50,7 @@ case "$1" in
echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
else
echo "Starting $DESC: $NAME..."
+ ulimit -n $MAX_FILEDESCRIPTORS
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \