zerotier: add configuration reload trigger

Ensure that the zerotier service is automatically restarted when the uci
configuration is modified.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 04d0e45da1)
This commit is contained in:
Jo-Philipp Wich 2021-12-01 15:50:52 +01:00 committed by Josef Schlehofer
parent 2bca94d83e
commit 15b41a6751
No known key found for this signature in database
GPG key ID: B950216FE4329F4C
2 changed files with 10 additions and 1 deletions

View file

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=zerotier
PKG_VERSION:=1.6.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/zerotier/ZeroTierOne/tar.gz/$(PKG_VERSION)?

View file

@ -109,3 +109,12 @@ stop_service() {
config_foreach stop_instance 'zerotier'
rm -f ${CONFIG_PATH}
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger 'zerotier'
}