[SSI] openssi/nfs-utils.more nfs.init, 1.1.15.2, 1.1.15.2.2.1 nfslock.init, 1.1.15.2, 1.1.15.2.2.1
Roger Tsang <[email protected]> Thu, 15 Jul 2010 03:33:13 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/nfs-utils.more
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10753
Modified Files:
Tag: OPENSSI-CENTOS
nfs.init nfslock.init
Log Message:
OpenSSI changes for nfs-utils-1.0.6-84.EL4
Index: nfs.init
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/nfs-utils.more/Attic/nfs.init,v
retrieving revision 1.1.15.2
retrieving revision 1.1.15.2.2.1
diff -u -d -r1.1.15.2 -r1.1.15.2.2.1
--- nfs.init 15 Jul 2010 03:28:36 -0000 1.1.15.2
+++ nfs.init 15 Jul 2010 03:33:11 -0000 1.1.15.2.2.1
@@ -13,6 +13,15 @@
# Source function library.
. /etc/rc.d/init.d/functions
+# Check whether this is OpenSSI
+if clusternode_num > /dev/null 2>&1 ; then
+ if [ "$SSINFS" = "" ];
+ then
+ echo "Skipping nfs service (starts from SSInfs)"
+ exit 0
+ fi
+fi
+
# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
exit 0
Index: nfslock.init
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/nfs-utils.more/Attic/nfslock.init,v
retrieving revision 1.1.15.2
retrieving revision 1.1.15.2.2.1
diff -u -d -r1.1.15.2 -r1.1.15.2.2.1
--- nfslock.init 15 Jul 2010 03:28:36 -0000 1.1.15.2
+++ nfslock.init 15 Jul 2010 03:33:11 -0000 1.1.15.2.2.1
@@ -39,6 +39,12 @@
echo -n "Starting NFS lockd: "
daemon rpc.lockd
echo
+ if clusternode_num > /dev/null 2>&1 ; then
+ thisnode="`clusternode_num`"
+ if [ "$thisnode" = "`cat /proc/1/where`" ] ; then
+ STATDARG="$STATDARG -C"
+ fi
+ fi
echo -n "Starting NFS statd: "
daemon rpc.statd ${STATDARG}
echo
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first