Browse Source
Merge pull request #17247 from jow-/zerotier-reload-trigger
zerotier: add configuration reload trigger
lilik-openwrt-22.03
Jo-Philipp Wich
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
net/zerotier/files/etc/init.d/zerotier
|
|
@ -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' |
|
|
|
} |