From: Ronnie Sahlberg Date: Wed, 10 Oct 2007 21:30:10 +0000 (+1000) Subject: use kill_tcp_connections() to kill off all tcp connections to the X-Git-Tag: tevent-0.9.20~348^2~2381^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=870a57a55bd1d4158b8c65312676f668a9d95e82;p=thirdparty%2Fsamba.git use kill_tcp_connections() to kill off all tcp connections to the "single public ip" address when we do a recovery (This used to be ctdb commit 19b52a2d5db31efa9e7c77037097ff8539986ac3) --- diff --git a/ctdb/config/events.d/90.ipmux b/ctdb/config/events.d/90.ipmux index 6b3a436aac6..69b3c89f00e 100755 --- a/ctdb/config/events.d/90.ipmux +++ b/ctdb/config/events.d/90.ipmux @@ -37,6 +37,12 @@ case $cmd in # kill off any ipmux processes killall -9 ctdb_ipmux >/dev/null 2>/dev/null + # kill off any tcp connections + /sbin/iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null + /sbin/iptables -I INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP + kill_tcp_connections $CTDB_SINGLE_PUBLIC_IP + /sbin/iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null + # are we the recmaster ? ctdb isnotrecmaster >/dev/null 2>/dev/null || { # change the ip address to have scope host so we wont respond