aboutsummaryrefslogtreecommitdiff
path: root/contrib/tor.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tor.sh.in')
-rw-r--r--contrib/tor.sh.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/tor.sh.in b/contrib/tor.sh.in
index dfde1f6a4..c5d79b88c 100644
--- a/contrib/tor.sh.in
+++ b/contrib/tor.sh.in
@@ -10,10 +10,12 @@ TORGROUP=
TORBIN=@BINDIR@/tor
TORPID=@LOCALSTATEDIR@/run/tor/tor.pid
TORLOG=@LOCALSTATEDIR@/log/tor/tor.log
+TORDATA=@LOCALSTATEDIR@/lib/tor
+
TORCONF=@CONFDIR@/torrc
# Strictly speaking, we don't need to su if we have --user and --group.
# "Belt and suspenders," says jbash.
-TORARGS="--pidfile $TORPID --logfile $TORLOG --runasdaemon 1"
+TORARGS="--pidfile $TORPID --logfile $TORLOG --runasdaemon 1 --datadirectory $TORDATA"
if [ "x$TORUSER" != "x" ]; then
TORARGS="$TORARGS --user $TORUSER"
fi
@@ -56,8 +58,8 @@ case "$1" in
echo " ERROR!"
fi
else
- echo "Unable to kill tor: $TORPID does not exist"
- RETVAL=1
+ echo "Unable to kill tor: $TORPID does not exist. Assuming already dead."
+ RETVAL=0
fi
;;