From 5bce9c3e1d043e90fb31920e7a1ff5dbe1116124 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Mon, 30 Dec 2019 13:23:05 +0100 Subject: [PATCH] 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 --- net/tor/Makefile | 2 +- net/tor/files/tor.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.30.2