diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-27 10:54:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-27 10:54:39 +0000 |
commit | 77540a9ba07ee9e91439af04498b77a3336e8acd (patch) | |
tree | 3fede02b68925c6d8539369bca507997a52e487f | |
parent | b2b1bd35e6b00a4f068c375aa5c56b86e87e09f9 (diff) | |
download | upstream-77540a9ba07ee9e91439af04498b77a3336e8acd.tar.gz upstream-77540a9ba07ee9e91439af04498b77a3336e8acd.tar.bz2 upstream-77540a9ba07ee9e91439af04498b77a3336e8acd.zip |
igmpproxy: fix spurious restarts on interface events, pass used netdevs to procd instead
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47055
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47060 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/network/services/igmpproxy/files/igmpproxy.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/services/igmpproxy/files/igmpproxy.init b/package/network/services/igmpproxy/files/igmpproxy.init index 3ff8f19dad..d03f90f0c8 100644 --- a/package/network/services/igmpproxy/files/igmpproxy.init +++ b/package/network/services/igmpproxy/files/igmpproxy.init @@ -51,6 +51,8 @@ igmp_add_phyint() { 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 @@ igmp_add_network() { 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 @@ service_triggers() { start_service() { has_upstream= + netdevs= config_load igmpproxy config_foreach igmp_header igmpproxy @@ -121,6 +124,7 @@ start_service() { [ -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 |