tor: add respawn to init script 10901/head
authorJan Pavlinec <jan.pavlinec@nic.cz>
Mon, 30 Dec 2019 12:23:05 +0000 (13:23 +0100)
committerJan Pavlinec <jan.pavlinec@nic.cz>
Mon, 30 Dec 2019 12:55:02 +0000 (13:55 +0100)
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>
net/tor/Makefile
net/tor/files/tor.init

index e9843289b9c735198107d10601fa77b9a2484956..0110e8c482edc511ef44961566943274499c65db 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tor
 PKG_VERSION:=0.4.2.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://dist.torproject.org/ \
index ee0818d9d13afce182f8290b6aeb690d1164ed10..1480e73ebf56744c539ebd67776f846b6b306174 100644 (file)
@@ -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
 }