mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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>
This commit is contained in:
@@ -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/ \
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user