diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-02-02 06:20:38 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2005-02-02 06:20:38 +0000 |
commit | cbb1b33fb552ac49abbf2c7429ac462538ed25e8 (patch) | |
tree | 678a8c3a439f0739fe2a3e7ab8172c11dfab1388 /debian/tor.init | |
parent | 0551e3a814d9a2df052c430b70c1beede58bd84a (diff) | |
download | tor-cbb1b33fb552ac49abbf2c7429ac462538ed25e8.tar tor-cbb1b33fb552ac49abbf2c7429ac462538ed25e8.tar.gz |
Set ulimit for file descriptors to 4096 in our init script
svn:r3501
Diffstat (limited to 'debian/tor.init')
-rw-r--r-- | debian/tor.init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/tor.init b/debian/tor.init index 3763996f9..93fb37544 100644 --- a/debian/tor.init +++ b/debian/tor.init @@ -10,6 +10,7 @@ TORPID=/var/run/tor/tor.pid DEFAULTSFILE=/etc/default/$NAME WAITFORDAEMON=10 ARGS="" +MAX_FILEDESCRIPTORS=4096 test -x $DAEMON || exit 0 @@ -49,6 +50,7 @@ case "$1" in 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 \ |