summaryrefslogtreecommitdiff
path: root/package/tor
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
commit0a96e4538fe6552dd75aa939b249030f4cdfd77f (patch)
tree8c998c4ab78ea4b60d433847a9632466b9a814a4 /package/tor
parent845317b460ee99ad633534cad4de72404af7e30b (diff)
fix startup scripts, fix stop routine
Diffstat (limited to 'package/tor')
-rw-r--r--package/tor/files/tor.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/tor/files/tor.init b/package/tor/files/tor.init
index 5bcca701a..4432ad5cf 100644
--- a/package/tor/files/tor.init
+++ b/package/tor/files/tor.init
@@ -14,10 +14,10 @@ start)
[ -d /var/run/tor ] || mkdir -p /var/run/tor
[ -d /tmp/.tor ] || mkdir -p /tmp/.tor
chown tor:tor /tmp/.tor /var/run/tor
- su - tor -c tor
+ su - tor -c /usr/bin/tor
;;
stop)
- pkill tor
+ kill $(pgrep -f /usr/bin/tor)
;;
restart)
sh $0 stop