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 <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2017-12-23 20:02:49 +01:00 committed by Jan-Philipp Litza
parent e3cb03010d
commit 2d3614c1a9
No known key found for this signature in database
GPG Key ID: 1FB658053CE27196

View File

@ -29,4 +29,5 @@ start_filterd() {
service_triggers() { service_triggers() {
procd_add_reload_trigger "gluon-radv-filterd" procd_add_reload_trigger "gluon-radv-filterd"
procd_add_validation "validate_filterd_section" procd_add_validation "validate_filterd_section"
procd_add_raw_trigger "interface.*" 1000 /etc/init.d/gluon-radv-filterd reload
} }