Преглед на файлове

Force an increase in file descriptors on start

svn:r5945
Andrew Lewman преди 19 години
родител
ревизия
2d8e125b09
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      contrib/tor.sh.in

+ 3 - 0
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