Merge pull request #17247 from jow-/zerotier-reload-trigger

zerotier: add configuration reload trigger
This commit is contained in:
Jo-Philipp Wich 2021-12-01 23:56:28 +01:00 committed by GitHub
commit bdfea497ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

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'
}