]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- portmap check moved to start
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Oct 2006 19:58:42 +0000 (19:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfs.init -> 1.34

nfs.init

index f1e016c4487d442e935d0608c32db4301d83811d..87f26bd70632f57a2b94c3bdf29aac38a41bf03b 100644 (file)
--- a/nfs.init
+++ b/nfs.init
@@ -28,10 +28,6 @@ else
        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 @@ fi
 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
This page took 0.319083 seconds and 4 git commands to generate.