Add a --node-ip argument so that one can specify which ip address a
authorRonnie Sahlberg <sahlberg@ronnie>
Sun, 25 Nov 2007 23:52:55 +0000 (10:52 +1100)
committerRonnie Sahlberg <sahlberg@ronnie>
Sun, 25 Nov 2007 23:52:55 +0000 (10:52 +1100)
commit9e73dc87ccfbb148af4cd83ae1415fcb7b6e2f23
tree92a0a21fb0c2443723d3587032a79c4656ed1837
parent0597be338660ce9d80e9011a7a7158dcb66be272
Add a --node-ip argument so that one can specify which ip address a
specific instance of ctdbd should bind to. This helps when running a
"virtual" cluster on a single machine where all instcances bind to
different alias interfaces.

If --node-ip is specified, then we will only try to bind to this ip
address only. Othervise we fall back to the original method trying the
ip addresses in /etc/ctdb/nodes one by one until we find one we can bind
to.

No variable in /etc/sysconfig/ctdb added since this parameter only makes
sense in a virtual test/debug cluster.

(This used to be ctdb commit d96cb02c2c24f9eabbc53d3d38e90dea49cff3e0)
ctdb/include/ctdb.h
ctdb/include/ctdb_private.h
ctdb/server/ctdb_server.c
ctdb/server/ctdbd.c
ctdb/tcp/tcp_connect.c