network/tor: Create /var/run/tor at daemon start.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2020-04-29 09:48:24 +02:00 committed by Robby Workman
parent c920f65d43
commit 47bbc6b7cb

View file

@ -34,6 +34,8 @@ else
fi
tor_start() {
mkdir -p /var/run/tor
chown tor.tor /var/run/tor
if [ -n "$MAX_FILEDESCRIPTORS" ]; then
echo -n "Raising maximum number of filedescriptors (ulimit -n) to $MAX_FILEDESCRIPTORS"
if ulimit -n "$MAX_FILEDESCRIPTORS" ; then