aboutsummaryrefslogtreecommitdiff
path: root/tor.sh.in
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-19 22:48:07 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-19 22:48:07 +0000
commitb820d3bc425e6a7d0b7b5adaa3c4b2541183feb4 (patch)
treee70e91e68b2a8bdaf956783f0b73bdad361856d9 /tor.sh.in
parentd6601f8cff2d95376ea79394dd7373564c754835 (diff)
downloadtor-b820d3bc425e6a7d0b7b5adaa3c4b2541183feb4.tar.gz
tor-b820d3bc425e6a7d0b7b5adaa3c4b2541183feb4.zip
define the pidfile on the commandline, if you want it
svn:r854
Diffstat (limited to 'tor.sh.in')
-rw-r--r--tor.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/tor.sh.in b/tor.sh.in
index b47d82ae87..ecf3cb32d8 100644
--- a/tor.sh.in
+++ b/tor.sh.in
@@ -4,7 +4,7 @@ TORBIN=@BINDIR@/tor
TORPID=@LOCALSTATEDIR@/run/tor.pid
TORLOG=@LOCALSTATEDIR@/log/tor/tor.log
TORCONF=@CONFDIR@/torrc
-TORARGS="-l warn"
+TORARGS="--pidfile $TORPID --logfile $TORLOG --runasdaemon 1"
RETVAL=0
case "$1" in
@@ -16,7 +16,7 @@ case "$1" in
RETVAL=1
else
echo -n "Starting tor..."
- $TORBIN -f $TORCONF $TORARGS >$TORLOG 2>&1 &
+ $TORBIN -f $TORCONF $TORARGS
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo " ok"