From: Andrew Tridgell Date: Mon, 4 Jun 2007 04:16:51 +0000 (+1000) Subject: automatically bring up interfaces that we manage. This allows ctdb to work without... X-Git-Tag: tevent-0.9.20~348^2~2579 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73e626bc6b3b0330b47d2d038de5260ade337416;p=thirdparty%2Fsamba.git 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) --- 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