olsrd: reload if config changed via uci
authorNick Hainke <vincent@systemli.org>
Tue, 22 Jun 2021 14:40:42 +0000 (16:40 +0200)
committerPolynomdivision <vincent@systemli.org>
Wed, 23 Jun 2021 14:10:55 +0000 (16:10 +0200)
Fixes:
https://github.com/openwrt/luci/issues/5139

Signed-off-by: Nick Hainke <vincent@systemli.org>
olsrd/files/olsrd4.init
olsrd/files/olsrd6.init

index 4aa8b225ac39cbb296e83c354937579543b321cf..ca71a426176cf332cb5d938749e9442afcf18a1a 100644 (file)
@@ -33,6 +33,9 @@ start_service() {
 }
 
 service_triggers() {
+       # reload if config changed via uci
+       procd_add_reload_trigger "olsrd"
+
        # restart on ifup interface events
        for n in $(olsrd_list_configured_interfaces $OLSRD); do
                procd_add_reload_interface_trigger $n /etc/init.d/$OLSRD reload
index 25107d3a8f77a02d66b3b7c28142045b6ff831c0..8b81019e31f1f9c4fd32c39266ed868dbc8e6865 100644 (file)
@@ -34,6 +34,9 @@ start_service() {
 }
 
 service_triggers() {
+       # reload if config changed via uci
+       procd_add_reload_trigger "olsrd6"
+
        # restart on ifup interface events
        for n in $(olsrd_list_configured_interfaces $OLSRD); do
                procd_add_reload_interface_trigger $n /etc/init.d/$OLSRD reload