summaryrefslogtreecommitdiff
path: root/package/tor/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-15 18:52:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-15 18:52:02 +0100
commitfe61fddc250860c2fdcad08fc4fe838f45cd4dcf (patch)
tree8c4f2bde731ea580110baa062ad4ee9c10e80668 /package/tor/files
parent0bb96e115471dcd71674531e586f84bfee5dff6c (diff)
update to latest upstream version, fix startup script and example config
Diffstat (limited to 'package/tor/files')
-rw-r--r--package/tor/files/tor.init4
-rw-r--r--package/tor/files/torrc2
2 files changed, 3 insertions, 3 deletions
diff --git a/package/tor/files/tor.init b/package/tor/files/tor.init
index fcc8c144b..cbc395726 100644
--- a/package/tor/files/tor.init
+++ b/package/tor/files/tor.init
@@ -12,7 +12,9 @@ autostart)
;;
start)
[ -d /var/log/tor ] || mkdir -p /var/log/tor
- tor
+ [ -d /tmp/.tor ] || mkdir -p /tmp/.tor
+ chown tor:tor /tmp/.tor
+ su - tor -c tor
;;
stop)
pkill tor
diff --git a/package/tor/files/torrc b/package/tor/files/torrc
index e5cf75b6e..3a46e8933 100644
--- a/package/tor/files/torrc
+++ b/package/tor/files/torrc
@@ -131,6 +131,4 @@ RunAsDaemon 1
#ExitPolicy accept *:119 # accept nntp as well as default exit policy
#ExitPolicy reject *:* # middleman only -- no exits allowed
-User tor
-Group tor
PidFile /var/run/tor.pid