[Clfs-commits] commit: r28 - /trunk/standard/cblfs/init.d/nfs-client

svn at cross-lfs.org svn at cross-lfs.org
Sun Nov 16 11:26:09 PST 2008


Author: jciccone
Date: Sun Nov 16 19:26:08 2008
New Revision: 28

Log:
Final Update for NFS4 Client Script.

Modified:
    trunk/standard/cblfs/init.d/nfs-client

Modified: trunk/standard/cblfs/init.d/nfs-client
==============================================================================
--- trunk/standard/cblfs/init.d/nfs-client (original)
+++ trunk/standard/cblfs/init.d/nfs-client Sun Nov 16 19:26:08 2008
@@ -17,6 +17,10 @@
 		loadproc /usr/sbin/rpc.statd
 
 		if [ "$NFS4" = "yes" ]; then
+			boot_mesg "Mounting rpc_pipefs virtual filesystem..."
+			/bin/mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs 2>&1 > /dev/null
+			evaluate_retval
+
 			boot_mesg "Starting NFS gssd..."
 			loadproc /usr/sbin/rpc.gssd -k ${NFS4KEYTAB:-/etc/nfs4.keytab}
 
@@ -27,11 +31,17 @@
 		;;
 
 	stop)
-		boot_mesg "Stopping NFS idmapd..."
-		killproc /usr/sbin/rpc.idmapd
+		if [ "$NFS4" = "yes" ]; then
+			boot_mesg "Stopping NFS idmapd..."
+			killproc /usr/sbin/rpc.idmapd
 
-		boot_mesg "Stopping NFS gssd..."
-		killproc /usr/sbin/rpc.gssd
+			boot_mesg "Stopping NFS gssd..."
+			killproc /usr/sbin/rpc.gssd
+
+			boot_mesg "Unmounting rpc_pipefs virtual filesystem..."
+			/bin/umount /var/lib/nfs/rpc_pipefs 2>&1 > /dev/null
+			evaluate_retval
+		fi
 
 		boot_mesg "Stopping NFS statd..."
 		killproc /usr/sbin/rpc.statd
@@ -45,8 +55,10 @@
 
 	status)
 		statusproc /usr/sbin/rpc.statd
-		statusproc /usr/sbin/rpc.gssd
-		statusproc /usr/sbin/rpc.idmapd
+		if [ "$NFS4" = "yes" ]; then
+			statusproc /usr/sbin/rpc.gssd
+			statusproc /usr/sbin/rpc.idmapd
+		fi
 		;;
 
 	*)




More information about the Clfs-commits mailing list