packages/net/tor-alpha/patches/001-torrc.patch
dingo 725f30e728 [patch-team] - tor-alpha new package - Signed-off-by: Jacob Appelbaum <jacob@appelbaum.net>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24656 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-18 02:01:59 +00:00

23 lines
857 B
Diff

--- a/src/config/torrc.sample.in 2010-11-22 19:49:38.000000000 -0800
+++ a/src/config/torrc.sample.in 2010-12-17 14:49:41.379893002 -0800
@@ -44,11 +44,11 @@
## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line. This is ignored on Windows;
## see the FAQ entry if you want Tor to run as an NT service.
-#RunAsDaemon 1
+RunAsDaemon 1
## The directory for keeping all the keys/etc. By default, we store
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
-#DataDirectory @LOCALSTATEDIR@/lib/tor
+DataDirectory @LOCALSTATEDIR@/lib/tor
## The port on which Tor will listen for local connections from Tor
## controller applications, as documented in control-spec.txt.
@@ -168,3 +168,5 @@
#BridgeRelay 1
#ExitPolicy reject *:*
+User tor
+PidFile @LOCALSTATEDIR@/run/tor.pid