tor: Increase number of max. open file descriptors.

This commit is contained in:
Michael Tremer
2013-09-30 12:14:09 +02:00
parent 83dfa1d7b2
commit 6adacba055

View File

@@ -9,6 +9,8 @@
. /etc/sysconfig/rc
. ${rc_functions}
FILEDESCRIPTORS="65535"
eval $(/usr/local/bin/readhash /var/ipfire/tor/settings)
function tor_is_enabled() {
@@ -36,6 +38,11 @@ case "${1}" in
# Setup firewall.
setup_firewall
# Increasing open file descriptors.
if [ -n "${FILEDESCRIPTORS}" ]; then
ulimit -n "${FILEDESCRIPTORS}"
fi
boot_mesg "Starting tor..."
loadproc /usr/bin/tor \
--runasdaemon 1 \