From 04d0e45da1b6126643c54a22c39488b7095a5594 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Dec 2021 15:50:52 +0100 Subject: [PATCH] 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 --- net/zerotier/files/etc/init.d/zerotier | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/net/zerotier/files/etc/init.d/zerotier b/net/zerotier/files/etc/init.d/zerotier index 3d9e60c1c0..f7ba8e91d8 100755 --- a/net/zerotier/files/etc/init.d/zerotier +++ b/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' +} -- 2.30.2