[or-cvs] r15720: fix r1571[89], thanks arma (tor/trunk/debian)

weasel at seul.org weasel at seul.org
Mon Jul 7 11:57:54 UTC 2008


Author: weasel
Date: 2008-07-07 07:57:54 -0400 (Mon, 07 Jul 2008)
New Revision: 15720

Modified:
   tor/trunk/debian/tor.init
Log:
fix r1571[89], thanks arma

Modified: tor/trunk/debian/tor.init
===================================================================
--- tor/trunk/debian/tor.init	2008-07-07 11:27:59 UTC (rev 15719)
+++ tor/trunk/debian/tor.init	2008-07-07 11:57:54 UTC (rev 15720)
@@ -28,14 +28,12 @@
 # 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



More information about the tor-commits mailing list