mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
define the pidfile on the commandline, if you want it
svn:r854
This commit is contained in:
parent
d6601f8cff
commit
b820d3bc42
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue