SOURCES: nfs.init - portmap check moved to start

glen glen at pld-linux.org
Mon Oct 2 21:58:47 CEST 2006


Author: glen                         Date: Mon Oct  2 19:58:47 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- portmap check moved to start

---- Files affected:
SOURCES:
   nfs.init (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: SOURCES/nfs.init
diff -u SOURCES/nfs.init:1.33 SOURCES/nfs.init:1.34
--- SOURCES/nfs.init:1.33	Mon Oct  2 21:57:27 2006
+++ SOURCES/nfs.init	Mon Oct  2 21:58:42 2006
@@ -28,10 +28,6 @@
 	exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-	[ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
-fi
-
 # Sanity checks
 [ -x /usr/sbin/rpc.nfsd ] || exit 0
 [ -x /usr/sbin/rpc.mountd ] || exit 0
@@ -44,6 +40,13 @@
 start() {
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/nfs ]; then
+		if [ -x /sbin/pidof ]; then
+			if [ -z "`/sbin/pidof portmap`" ]; then
+			   	nls "Error: portmap isn't running"
+			   	exit 0
+			fi
+		fi
+
 		# Start daemons.
 		modprobe -s nfsd > /dev/null 2>&1
 		if [ "$(kernelverser)" -ge "002006" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/nfs.init?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list