aboutsummaryrefslogtreecommitdiff
path: root/net/tor/files/tor.init
diff options
context:
space:
mode:
authorJan Pavlinec <jan.pavlinec@nic.cz>2019-12-30 13:23:05 +0100
committerJan Pavlinec <jan.pavlinec@nic.cz>2019-12-30 13:55:02 +0100
commit5bce9c3e1d043e90fb31920e7a1ff5dbe1116124 (patch)
tree6c391294ea4663ccba637f64c12919d15a64ca77 /net/tor/files/tor.init
parenta339e0ede37de1dbbb15240d6d6907b063b9866c (diff)
tor: add respawn to init script
Note: In some cases when tor daemon starts before than the router is connected to the Internet. Tor will exit and you have to run it manually. This should fix this case. Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
Diffstat (limited to 'net/tor/files/tor.init')
-rw-r--r--net/tor/files/tor.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tor/files/tor.init b/net/tor/files/tor.init
index ee0818d9d..1480e73eb 100644
--- a/net/tor/files/tor.init
+++ b/net/tor/files/tor.init
@@ -18,5 +18,6 @@ start_service() {
procd_open_instance
procd_set_param command /usr/sbin/tor --runasdaemon 0
+ procd_set_param respawn
procd_close_instance
}