From 73e626bc6b3b0330b47d2d038de5260ade337416 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Jun 2007 14:16:51 +1000 Subject: [PATCH] automatically bring up interfaces that we manage. This allows ctdb to work without requiring two IPs per public interface (This used to be ctdb commit 221850dcf9c28698eb3a1baf33cbf7f9137ac502) --- ctdb/config/events | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/config/events b/ctdb/config/events index 58af6a85862..9b0126d35d2 100755 --- a/ctdb/config/events +++ b/ctdb/config/events @@ -28,6 +28,10 @@ case $cmd in ip=$2 maskbits=$3 + /sbin/ip link set $iface up || { + echo "`/bin/date` Failed to bringup interface $iface" + exit 1 + } /sbin/ip addr add $ip/$maskbits dev $iface || { echo "`/bin/date` Failed to add $ip/$maskbits on dev $iface" exit 1 -- 2.47.3