mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
tor: Increase number of max. open file descriptors.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user