[OpenWrt-Devel] Tor is broken

e9hack e9hack at gmail.com
Tue Feb 25 15:28:23 EST 2020

Am 15.02.2020 um 11:18 schrieb Rosen Penev:
> It’s the pidfile profs parameter that’s breaking things.

Your fix doesn't solve the issue. 

commit	acabb2cf50726ccafc3cb44aab4307440b2035a4
tor: fix init scripts

Tor isn't able to create the pid file and terminates. The reload function does also not work. This does fix the issues:

diff --git a/net/tor/files/tor.init b/net/tor/files/tor.init
index 142e2512d..dc4ea9d63 100644
--- a/net/tor/files/tor.init
+++ b/net/tor/files/tor.init
@@ -32,10 +32,13 @@ generate_conf() {

 reload_service() {
-       procd_send_signal /usr/sbin/tor
+       procd_send_signal tor

 start_service() {
+       touch /var/run/tor.pid
+       chown tor:tor /var/run/tor.pid
        mkdir -m 0700 -p /var/lib/tor
        chown -R tor:tor /var/lib/tor


openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list