From: Ronnie Sahlberg Date: Tue, 7 Aug 2007 21:58:13 +0000 (+1000) Subject: /etc/sysconfig/nfs can now discover the public ipaddress automagically X-Git-Tag: tevent-0.9.20~348^2~2442^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a85054adcf1488f408e15fd4996d9e4822ca98d2;p=thirdparty%2Fsamba.git /etc/sysconfig/nfs can now discover the public ipaddress automagically (This used to be ctdb commit 75e6fe48e4085eedf99ca1223a0e92208e77f716) --- diff --git a/ctdb/web/nfs.html b/ctdb/web/nfs.html index b10171acac6..ae37774d6d1 100644 --- a/ctdb/web/nfs.html +++ b/ctdb/web/nfs.html @@ -43,7 +43,10 @@ This file should look something like : LOCKD_TCPPORT=599 LOCKD_UDPPORT=599 STATD_SHARED_DIRECTORY=/gpfs0/nfs-state - STATD_HOSTNAME="ctdb -P $STATD_SHARED_DIRECTORY/192.168.1.1 -H /etc/ctdb/statd-callout -p 97" + PUBLIC_IP=`ctdb publicip 2>/dev/null` + [ -z "$PUBLIC_IP" ] || { + STATD_HOSTNAME="ctdb -P "$STATD_SHARED_DIRECTORY/$PUBLIC_IP" -H /etc/ctdb/statd-callout -p 97" + } The CTDB_MANAGES_NFS line tells the events scripts that CTDB is to manage startup and shutdown of the NFS and NFSLOCK services.