1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

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)
This commit is contained in:
Ronnie Sahlberg 2007-10-11 07:30:10 +10:00
parent fa5d51c238
commit 870a57a55b

View File

@ -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