aboutsummaryrefslogtreecommitdiff
path: root/debian/tor.init
diff options
context:
space:
mode:
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 3763996f9f..93fb375448 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 \