From: Jan Pavlinec Date: Mon, 30 Dec 2019 12:23:05 +0000 (+0100) Subject: tor: add respawn to init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5bce9c3e1d043e90fb31920e7a1ff5dbe1116124;p=feed%2Fpackages.git 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 --- diff --git a/net/tor/Makefile b/net/tor/Makefile index e9843289b9..0110e8c482 100644 --- a/net/tor/Makefile +++ b/net/tor/Makefile @@ -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/ \ diff --git a/net/tor/files/tor.init b/net/tor/files/tor.init index ee0818d9d1..1480e73ebf 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 }