fix r1571[89], thanks arma

svn:r15720
This commit is contained in:
Peter Palfrader 2008-07-07 11:57:54 +00:00
parent 57de86bae7
commit 0e3efc1140

14
debian/tor.init vendored
View File

@ -28,14 +28,12 @@ ARGS=""
# Let's try to figure our some sane defaults: # Let's try to figure our some sane defaults:
if [ -r /proc/sys/fs/file-max ]; then if [ -r /proc/sys/fs/file-max ]; then
system_max=`cat /proc/sys/fs/file-max` system_max=`cat /proc/sys/fs/file-max`
#if [ "$system_max" -gt "80000" ] ; then if [ "$system_max" -gt "80000" ] ; then
#MAX_FILEDESCRIPTORS=32768 MAX_FILEDESCRIPTORS=32768
#elif [ "$system_max" -gt "40000" ] ; then elif [ "$system_max" -gt "40000" ] ; then
#MAX_FILEDESCRIPTORS=16384 MAX_FILEDESCRIPTORS=16384
#elif [ "$system_max" -gt "10000" ] ; then elif [ "$system_max" -gt "10000" ] ; then
#MAX_FILEDESCRIPTORS=8192 MAX_FILEDESCRIPTORS=8192
if 0; then
echo fo
else else
MAX_FILEDESCRIPTORS=1024 MAX_FILEDESCRIPTORS=1024
cat << EOF cat << EOF