mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
fix r1571[89], thanks arma
svn:r15720
This commit is contained in:
parent
57de86bae7
commit
0e3efc1140
14
debian/tor.init
vendored
14
debian/tor.init
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user