Browse Source

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>
lilik-openwrt-22.03
Jo-Philipp Wich 3 years ago
parent
commit
04d0e45da1
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      net/zerotier/files/etc/init.d/zerotier

+ 9
- 0
net/zerotier/files/etc/init.d/zerotier 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'
}

Loading…
Cancel
Save