2 # event script for 'make test'
10 echo "monitor event stderr" >&2
14 echo "ctdb startup event"
20 echo "must supply interface, IP and maskbits"
28 /sbin/ip addr add $ip/$maskbits dev $iface || {
29 echo "Failed to add $ip/$maskbits on dev $iface"
37 ##################################################
38 # called when ctdbd wants to release an IP address
41 echo "must supply interface, IP and maskbits"
48 /sbin/ip addr del $ip/$maskbits dev $iface || {
49 echo "Failed to del $ip on dev $iface"
53 echo "ctdb takeip event for $1 $2 $3"
58 echo "ctdb recovered event"
63 echo "ctdb shutdown event"
68 echo "Invalid command $cmd"