diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-07-07 11:58:18 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-07-07 11:58:18 +0000 |
commit | beeacfde3ad0cc789b417a5848e39f7b94cc6465 (patch) | |
tree | cc900e49920b8636a648ff0192703f90ce897752 | |
parent | 555a6e1f8a21a7720a0334d63eca8078e9f4f756 (diff) | |
download | tor-beeacfde3ad0cc789b417a5848e39f7b94cc6465.tar.gz tor-beeacfde3ad0cc789b417a5848e39f7b94cc6465.zip |
fix r1571[89], thanks arma
svn:r15721
-rw-r--r-- | debian/tor.init | 14 |
1 files changed, 6 insertions, 8 deletions
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 |