1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00

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>
This commit is contained in:
Jo-Philipp Wich 2021-12-01 15:50:52 +01:00
parent 1c42744a52
commit 04d0e45da1

View File

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