Browse Source

Make OS X package actually try to log things to the nice log directory we gave it.

svn:r3776
Nick Mathewson 20 years ago
parent
commit
71c7733154
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/osx/Tor

+ 2 - 1
contrib/osx/Tor

@@ -6,6 +6,7 @@ TORPID=/var/run/Tor.pid
 TORUSER=_tor
 TORUSER=_tor
 TORGROUP=daemon
 TORGROUP=daemon
 TORCMD=/Library/Tor/tor
 TORCMD=/Library/Tor/tor
+TORLOG=/var/log/tor/tor.log
 
 
 ##
 ##
 # Tor Service
 # Tor Service
@@ -24,7 +25,7 @@ StartService ()
 # Tentative
 # Tentative
 # Making sure it is not running (I know it is not a best approarch)
 # Making sure it is not running (I know it is not a best approarch)
 		killall tor 2>/dev/null
 		killall tor 2>/dev/null
-		$TORCMD -f $TORCONF --runasdaemon 1 --pidfile $TORPID --datadirectory $TORDIR --user $TORUSER --group $TORGROUP &
+		$TORCMD -f $TORCONF --runasdaemon 1 --pidfile $TORPID --datadirectory $TORDIR --user $TORUSER --group $TORGROUP --log "notice file $TORLOG" &
 	fi
 	fi
     fi
     fi
 }
 }