2 # event script for 'make test'
9 echo "`date` monitor event"
13 echo "`date` ctdb startup event"
19 echo "must supply interface, IP and maskbits"
27 /sbin/ip addr add $ip/$maskbits dev $iface || {
28 echo "`/bin/date` Failed to add $ip/$maskbits on dev $iface"
36 ##################################################
37 # called when ctdbd wants to release an IP address
40 echo "`/bin/date` must supply interface, IP and maskbits"
47 /sbin/ip addr del $ip/$maskbits dev $iface || {
48 echo "`/bin/date` Failed to del $ip on dev $iface"
52 echo "`date` ctdb takeip event for $1 $2 $3"
57 echo "`date` ctdb recovered event"
62 echo "`date` ctdb shutdown event"
67 echo "`/bin/date` Invalid command $cmd"