Author: nbd
Date: 2015-09-27 12:54:39 +0200 (Sun, 27 Sep 2015)
New Revision: 47060

Modified:
   branches/chaos_calmer/package/network/services/igmpproxy/files/igmpproxy.init
Log:
igmpproxy: fix spurious restarts on interface events, pass used netdevs to 
procd instead

Signed-off-by: Felix Fietkau <[email protected]>

Backport of r47055

Modified: 
branches/chaos_calmer/package/network/services/igmpproxy/files/igmpproxy.init
===================================================================
--- 
branches/chaos_calmer/package/network/services/igmpproxy/files/igmpproxy.init   
    2015-09-27 10:25:27 UTC (rev 47059)
+++ 
branches/chaos_calmer/package/network/services/igmpproxy/files/igmpproxy.init   
    2015-09-27 10:54:39 UTC (rev 47060)
@@ -51,6 +51,8 @@
                return;
        }
 
+       append netdevs "$device"
+
        [[ "$direction" = "upstream" ]] && has_upstream=1
 
        echo -e "\nphyint $device $direction ratelimit 0 threshold 1" >> 
/var/etc/igmpproxy.conf
@@ -67,7 +69,7 @@
        local network
 
        config_get network $1 network
-       procd_add_interface_trigger "interface.*" $network 
/etc/init.d/igmpproxy restart
+       procd_add_interface_trigger "interface.*" $network 
/etc/init.d/igmpproxy reload
 }
 
 igmp_add_firewall_routing() {
@@ -110,6 +112,7 @@
 
 start_service() {
        has_upstream=
+       netdevs=
        config_load igmpproxy
 
        config_foreach igmp_header igmpproxy
@@ -121,6 +124,7 @@
        [ -n "$OPTIONS" ] && procd_append_param $OPTIONS
        procd_append_param command $CONFIGFILE
        procd_set_param file $CONFIGFILE
+       procd_set_param netdev $netdevs
        procd_set_param respawn
        procd_open_trigger
        config_foreach igmp_add_network phyint
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to