Whitespace and indentation improvements.
Remove comments describing events, since the README covers that much
better.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
-case "$1" in
- #############################
- # called when ctdbd starts up
- init)
# make sure that we only respond to ARP messages from the NIC where
# a particular ip address is associated.
get_proc sys/net/ipv4/conf/all/arp_filter >/dev/null 2>&1 && {
# make sure that we only respond to ARP messages from the NIC where
# a particular ip address is associated.
get_proc sys/net/ipv4/conf/all/arp_filter >/dev/null 2>&1 && {
- #############################
- # called after ctdbd has done its initial recovery
- # and we start the services to become healthy
- startup)
-
- ################################################
- # called when ctdbd wants to claim an IP address
- takeip)
iface=$2
ip=$3
maskbits=$4
iface=$2
ip=$3
maskbits=$4
-
- ##################################################
- # called when ctdbd wants to release an IP address
- releaseip)
# releasing an IP is a bit more complex than it seems. Once the IP
# is released, any open tcp connections to that IP on this host will end
# up being stuck. Some of them (such as NFS connections) will be unkillable
# releasing an IP is a bit more complex than it seems. Once the IP
# is released, any open tcp connections to that IP on this host will end
# up being stuck. Some of them (such as NFS connections) will be unkillable
- ##################################################
- # called when ctdbd wants to update an IP address
- updateip)
# moving an IP is a bit more complex than it seems.
# First we drop all traffic on the old interface.
# Then we try to add the ip to the new interface and before
# moving an IP is a bit more complex than it seems.
# First we drop all traffic on the old interface.
# Then we try to add the ip to the new interface and before
# tickle all existing connections, so that dropped packets
# are retransmited and the tcp streams work
# tickle all existing connections, so that dropped packets
# are retransmited and the tcp streams work
tickle_tcp_connections $ip
tickle_tcp_connections $ip
monitor_interfaces || exit 1
;;
*)
monitor_interfaces || exit 1
;;
*)