mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 06:01:20 +08: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:
parent
06e8a56c98
commit
2c7f6d8f93
@ -115,3 +115,12 @@ stop_service() {
|
|||||||
config_foreach stop_instance 'zerotier'
|
config_foreach stop_instance 'zerotier'
|
||||||
rm -f ${CONFIG_PATH}
|
rm -f ${CONFIG_PATH}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reload_service() {
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|
||||||
|
service_triggers() {
|
||||||
|
procd_add_reload_trigger 'zerotier'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user