diff options
author | Jan Pavlinec <jan.pavlinec@nic.cz> | 2019-12-30 13:23:05 +0100 |
---|---|---|
committer | Jan Pavlinec <jan.pavlinec@nic.cz> | 2019-12-30 13:55:02 +0100 |
commit | 5bce9c3e1d043e90fb31920e7a1ff5dbe1116124 (patch) | |
tree | 6c391294ea4663ccba637f64c12919d15a64ca77 /net/tor/files/tor.init | |
parent | a339e0ede37de1dbbb15240d6d6907b063b9866c (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.init | 1 |
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 } |