Rev 604: added back --public-interface to startup script in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Sep 10 05:09:29 GMT 2007


------------------------------------------------------------
revno: 604
revision-id: tridge at samba.org-20070910050928-p53glulwuefby7qi
parent: tridge at samba.org-20070910042729-ch7b9ivma33659hy
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.test
timestamp: Mon 2007-09-10 15:09:28 +1000
message:
  added back --public-interface to startup script
modified:
  config/ctdb.init               ctdb.init-20070527204758-biuh7znabuwan3zn-6
  config/ctdb.sysconfig          ctdb.sysconfig-20070527204758-biuh7znabuwan3zn-7
=== modified file 'config/ctdb.init'
--- a/config/ctdb.init	2007-09-03 23:50:07 +0000
+++ b/config/ctdb.init	2007-09-10 05:09:28 +0000
@@ -52,6 +52,7 @@
 [ -z "$CTDB_NODES" ]            || CTDB_OPTIONS="$CTDB_OPTIONS --nlist=$CTDB_NODES"
 [ -z "$CTDB_SOCKET" ]           || CTDB_OPTIONS="$CTDB_OPTIONS --socket=$CTDB_SOCKET"
 [ -z "$CTDB_PUBLIC_ADDRESSES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-addresses=$CTDB_PUBLIC_ADDRESSES"
+[ -z "$CTDB_PUBLIC_INTERFACE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-interface=$CTDB_PUBLIC_INTERFACE"
 [ -z "$CTDB_DBDIR" ]            || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir=$CTDB_DBDIR"
 [ -z "$CTDB_EVENT_SCRIPT_DIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --event-script-dir $CTDB_EVENT_SCRIPT_DIR"
 [ -z "$CTDB_TRANSPORT" ]        || CTDB_OPTIONS="$CTDB_OPTIONS --transport $CTDB_TRANSPORT"

=== modified file 'config/ctdb.sysconfig'
--- a/config/ctdb.sysconfig	2007-09-03 23:50:07 +0000
+++ b/config/ctdb.sysconfig	2007-09-10 05:09:28 +0000
@@ -5,6 +5,12 @@
 # there is no default
 # CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"
 
+# when doing IP takeover you also may specify what network interface
+# to use by default for the public addresses. Otherwise you must
+# specify an interface on each line of the public addresses file
+# there is no default
+# CTDB_PUBLIC_INTERFACE=eth0
+
 # Should ctdb do IP takeover? If it should, then specify a file
 # containing the list of public IP addresses that ctdb will manage
 # Note that these IPs must be different from those in $NODES above



More information about the samba-cvs mailing list