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

svn at cross-lfs.org svn at cross-lfs.org
Sun Nov 16 08:18:48 PST 2008


Author: jciccone
Date: Sun Nov 16 16:18:47 2008
New Revision: 26

Log:
Add NFS4 Support.

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

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 16:18:47 2008
@@ -9,11 +9,21 @@
 
 . /etc/sysconfig/rc
 . $rc_functions
+. /etc/sysconfig/nfs-client
 
 case "$1" in
 	start)
 		boot_mesg "Starting NFS statd..."
 		loadproc /usr/sbin/rpc.statd
+
+		if [ "$NFS4" = "yes" ]; then
+			bootmesg "Starting NFS gssd"
+			loadproc /usr/sbin/rpc.gssd -k ${NFS4KEYTAB:-/etc/nfs4.keytab}
+
+			bootmesg "Starting NFS idmapd"
+			loadproc /usr/sbin/rpc.idmapd
+		fi
+
 		;;
 
 	stop)

Modified: trunk/standard/cblfs/init.d/nfs-server
==============================================================================
--- trunk/standard/cblfs/init.d/nfs-server (original)
+++ trunk/standard/cblfs/init.d/nfs-server Sun Nov 16 16:18:47 2008
@@ -15,6 +15,14 @@
 	start)
 		boot_mesg "Starting NFS mountd..."
 		loadproc /usr/sbin/rpc.mountd
+
+		if [ "$NFS4" = "yes" ]; then
+			boot_mesg "Starting NFS4 idmapd..."
+			loadproc /usr/sbin/rpc.idmapd
+
+			boot_mesg "Starting NFS4 svcgssd..."
+			loadproc /usr/sbin/rpc.svcgssd
+		fi
 
 		boot_mesg "Starting NFS nfsd..."
 		loadproc /usr/sbin/rpc.nfsd -p $PORT $PROCESSES
@@ -49,6 +57,14 @@
 		boot_mesg "Stopping NFS nfsd..."
 		# nfsd needs HUP....
 		killproc nfsd HUP
+
+		if [ "$NFS4" = "yes" ]; then
+			boot_mesg "Stopping NFS svcgssd..."
+			killproc /usr/sbin/rpc.svcgssd
+
+			boot_mesg "Stopping NFS idmapd..."
+			killproc /usr/sbin/rpc.idmapd
+		fi
 
 		boot_mesg "Stopping NFS mountd..."
 		killproc /usr/sbin/rpc.mountd
@@ -92,6 +108,10 @@
 	status)
 		statusproc /usr/sbin/rpc.mountd
 		## Special case for nfsd with no full path
+		if [ "$NFS4" = "yes" ]; then
+			statusproc /usr/sbin/rpc.idmapd
+			statusproc /usr/sbin/rps.svcgssd
+		fi
 		statusproc nfsd
 		statusproc /usr/sbin/rpc.statd
 		if [ "$QUOTA" = "yes" ]; then




More information about the Clfs-commits mailing list