mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 02:09:24 +01:00
Set ulimit for file descriptors to 4096 in our init script
svn:r3501
This commit is contained in:
parent
0551e3a814
commit
cbb1b33fb5
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -4,8 +4,10 @@ tor (0.1.0.0-alpha-cvs-1) UNRELEASED; urgency=low
|
|||||||
* Forward port 06_add_compile_time_defaults.
|
* Forward port 06_add_compile_time_defaults.
|
||||||
* Add libevent-dev to build-depends.
|
* Add libevent-dev to build-depends.
|
||||||
* Update URL to tor in debian/control and debian/copyright.
|
* Update URL to tor in debian/control and debian/copyright.
|
||||||
|
* Set ulimit for file descriptors to 4096 in our init
|
||||||
|
script.
|
||||||
|
|
||||||
-- Peter Palfrader <weasel@debian.org> Sun, 23 Jan 2005 16:26:13 +0100
|
-- Peter Palfrader <weasel@debian.org> Wed, 2 Feb 2005 07:19:34 +0100
|
||||||
|
|
||||||
tor (0.0.9.3-1) unstable; urgency=low
|
tor (0.0.9.3-1) unstable; urgency=low
|
||||||
|
|
||||||
|
7
debian/tor.default
vendored
7
debian/tor.default
vendored
@ -7,6 +7,13 @@
|
|||||||
#
|
#
|
||||||
RUN_DAEMON="yes"
|
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
|
# Uncomment this if you want to get coredumps
|
||||||
#
|
#
|
||||||
|
2
debian/tor.init
vendored
2
debian/tor.init
vendored
@ -10,6 +10,7 @@ TORPID=/var/run/tor/tor.pid
|
|||||||
DEFAULTSFILE=/etc/default/$NAME
|
DEFAULTSFILE=/etc/default/$NAME
|
||||||
WAITFORDAEMON=10
|
WAITFORDAEMON=10
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
MAX_FILEDESCRIPTORS=4096
|
||||||
|
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
@ -49,6 +50,7 @@ case "$1" in
|
|||||||
echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
|
echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
|
||||||
else
|
else
|
||||||
echo "Starting $DESC: $NAME..."
|
echo "Starting $DESC: $NAME..."
|
||||||
|
ulimit -n $MAX_FILEDESCRIPTORS
|
||||||
start-stop-daemon --start --quiet --oknodo \
|
start-stop-daemon --start --quiet --oknodo \
|
||||||
--chuid debian-tor:debian-tor \
|
--chuid debian-tor:debian-tor \
|
||||||
--pidfile $TORPID \
|
--pidfile $TORPID \
|
||||||
|
Loading…
Reference in New Issue
Block a user