From 2d3614c1a9dc55ff76ef4cfa1664068a496fd89c Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Sat, 23 Dec 2017 20:02:49 +0100 Subject: [PATCH] gluon-radv-filterd: Trigger config reload checks on interface.* events The init scripts adds the br-client as netdev for the daemon. The daemon will automatically be restarted when the netdev's ifindex is changed and the reload target of the init script is called. But something has to call this script first. This can be done the procd triggers interface which can simply wait for all events from type "interface.*". The reload target will always be called but the daemon will only be restarted when the br-client ifindex actually changed. Signed-off-by: Sven Eckelmann --- package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd b/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd index 4e1bc179..951a3932 100755 --- a/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd +++ b/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd @@ -29,4 +29,5 @@ start_filterd() { service_triggers() { procd_add_reload_trigger "gluon-radv-filterd" procd_add_validation "validate_filterd_section" + procd_add_raw_trigger "interface.*" 1000 /etc/init.d/gluon-radv-filterd reload }