]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix r1571[89], thanks arma
authorPeter Palfrader <peter@palfrader.org>
Mon, 7 Jul 2008 11:57:54 +0000 (11:57 +0000)
committerPeter Palfrader <peter@palfrader.org>
Mon, 7 Jul 2008 11:57:54 +0000 (11:57 +0000)
svn:r15720

debian/tor.init

index aa8fa37fd9a84ab362e71ebff5fe9ee1c61cbe83..a798c0cdf2d70079fcab4e9e33e71166c85d63b5 100644 (file)
@@ -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