From: Peter Palfrader Date: Mon, 7 Jul 2008 11:57:54 +0000 (+0000) Subject: fix r1571[89], thanks arma X-Git-Tag: tor-0.2.1.3-alpha~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e3efc1140b22e7b8891d109f15ebe5ab12ff9cc;p=thirdparty%2Ftor.git fix r1571[89], thanks arma svn:r15720 --- diff --git a/debian/tor.init b/debian/tor.init index aa8fa37fd9..a798c0cdf2 100644 --- a/debian/tor.init +++ b/debian/tor.init @@ -28,14 +28,12 @@ ARGS="" # Let's try to figure our some sane defaults: if [ -r /proc/sys/fs/file-max ]; then system_max=`cat /proc/sys/fs/file-max` - #if [ "$system_max" -gt "80000" ] ; then - #MAX_FILEDESCRIPTORS=32768 - #elif [ "$system_max" -gt "40000" ] ; then - #MAX_FILEDESCRIPTORS=16384 - #elif [ "$system_max" -gt "10000" ] ; then - #MAX_FILEDESCRIPTORS=8192 - if 0; then - echo fo + if [ "$system_max" -gt "80000" ] ; then + MAX_FILEDESCRIPTORS=32768 + elif [ "$system_max" -gt "40000" ] ; then + MAX_FILEDESCRIPTORS=16384 + elif [ "$system_max" -gt "10000" ] ; then + MAX_FILEDESCRIPTORS=8192 else MAX_FILEDESCRIPTORS=1024 cat << EOF