This makes sure that we don't get public addresses assigned during the
initial recovery and remove them again in the startup event.
metze
CTDB_NO_MEMORY_FATAL(ctdb, i);
i->name = talloc_strdup(i, iface);
CTDB_NO_MEMORY(ctdb, i->name);
- i->link_up = true;
+ i->link_up = false;
DLIST_ADD(ctdb->ifaces, i);
;;
startup)
echo "ctdb startup event"
- exit 0;
+ IFACES=`ctdb ifaces -Y | grep -v '^:Name:LinkStatus:References:'`
+ for I in $IFACES; do
+ IFACE=`echo -n "$I" | cut -d ':' -f2`
+ ctdb setifacelink $IFACE up
+ done
+ exit 0;
;;
takeip)