Rev 452: automatically bring up interfaces that we manage. This allows ctdb to work without requiring two IPs per public interface in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Jun 4 04:16:51 GMT 2007


------------------------------------------------------------
revno: 452
revision-id: tridge at samba.org-20070604041651-tcz0gjypen37ly9d
parent: tridge at samba.org-20070604033427-lmkyet1lja4tn7oz
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-06-04 14:16:51 +1000
message:
  automatically bring up interfaces that we manage. This allows ctdb to work without requiring two IPs per public interface
modified:
  config/events                  events-20070529030121-04fjh63cxfh8v1pj-1
=== modified file 'config/events'
--- a/config/events	2007-06-03 12:07:07 +0000
+++ b/config/events	2007-06-04 04:16:51 +0000
@@ -28,6 +28,10 @@
 	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



More information about the samba-cvs mailing list