[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Set ulimit for file descriptors to 4096 in our init script
Update of /home/or/cvsroot/tor/debian
In directory moria.mit.edu:/tmp/cvs-serv22063
Modified Files:
changelog tor.default tor.init
Log Message:
Set ulimit for file descriptors to 4096 in our init script
Index: changelog
===================================================================
RCS file: /home/or/cvsroot/tor/debian/changelog,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- changelog 23 Jan 2005 15:26:36 -0000 1.93
+++ changelog 2 Feb 2005 06:20:38 -0000 1.94
@@ -4,8 +4,10 @@
* Forward port 06_add_compile_time_defaults.
* Add libevent-dev to build-depends.
* Update URL to tor in debian/control and debian/copyright.
+ * Set ulimit for file descriptors to 4096 in our init
+ script.
- -- Peter Palfrader <weasel@xxxxxxxxxx> Sun, 23 Jan 2005 16:26:13 +0100
+ -- Peter Palfrader <weasel@xxxxxxxxxx> Wed, 2 Feb 2005 07:19:34 +0100
tor (0.0.9.3-1) unstable; urgency=low
Index: tor.default
===================================================================
RCS file: /home/or/cvsroot/tor/debian/tor.default,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- tor.default 6 Aug 2004 22:36:07 -0000 1.3
+++ tor.default 2 Feb 2005 06:20:38 -0000 1.4
@@ -8,6 +8,13 @@
RUN_DAEMON="yes"
#
+# Servers sometimes may need more than the default 1024 file descriptors
+# if they are very busy and have many clients connected to them.
+# (ulimit -n)
+#
+MAX_FILEDESCRIPTORS=4096
+
+#
# Uncomment this if you want to get coredumps
#
ulimit -c unlimited
Index: tor.init
===================================================================
RCS file: /home/or/cvsroot/tor/debian/tor.init,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- tor.init 12 Nov 2004 17:34:02 -0000 1.9
+++ tor.init 2 Feb 2005 06:20:38 -0000 1.10
@@ -10,6 +10,7 @@
DEFAULTSFILE=/etc/default/$NAME
WAITFORDAEMON=10
ARGS=""
+MAX_FILEDESCRIPTORS=4096
test -x $DAEMON || exit 0
@@ -49,6 +50,7 @@
echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
else
echo "Starting $DESC: $NAME..."
+ ulimit -n $MAX_FILEDESCRIPTORS
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \