summaryrefslogtreecommitdiffstats
path: root/ctdb/web
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-08-08 07:58:13 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-08-08 07:58:13 +1000
commita85054adcf1488f408e15fd4996d9e4822ca98d2 (patch)
tree99a6bcbd6b5a55bc5aba584e19a23d8a9423f40c /ctdb/web
parent24d1ee09ec6f827022c894a03687e3b3e9b5a0b7 (diff)
downloadsamba-a85054adcf1488f408e15fd4996d9e4822ca98d2.tar.gz
samba-a85054adcf1488f408e15fd4996d9e4822ca98d2.tar.xz
samba-a85054adcf1488f408e15fd4996d9e4822ca98d2.zip
/etc/sysconfig/nfs can now discover the public ipaddress automagically
(This used to be ctdb commit 75e6fe48e4085eedf99ca1223a0e92208e77f716)
Diffstat (limited to 'ctdb/web')
-rw-r--r--ctdb/web/nfs.html5
1 files changed, 4 insertions, 1 deletions
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"
+ }
</pre>
The CTDB_MANAGES_NFS line tells the events scripts that CTDB is to manage startup and shutdown of the NFS and NFSLOCK services.<br>