summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2020-04-29 09:48:24 +0200
committer Matteo Bernardini2021-02-27 11:08:14 +0100
commit96144ce68ac64c0dad31955bde03b14d9ccccaa1 (patch)
tree7b2de4ad40242a6962ea8897fa4988e4f495b480
parent9aa1498acb0841d4ce656319a4de5cc157b4e2ed (diff)
downloadslackbuilds-tor.tar.gz
network/tor: Create /var/run/tor at daemon start.tor
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--network/tor/rc.tor2
1 files changed, 2 insertions, 0 deletions
diff --git a/network/tor/rc.tor b/network/tor/rc.tor
index 11daf8a95a..53ab0ed110 100644
--- a/network/tor/rc.tor
+++ b/network/tor/rc.tor
@@ -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