]> git.pld-linux.org Git - packages/nfs-utils.git/blobdiff - rpcidmapd.init
- updated to 1.1.3
[packages/nfs-utils.git] / rpcidmapd.init
index 298698062c4058cef74cf05471740aa318d19ba7..f10ae439bc46883285a0c518bff1df0d0b5996e5 100644 (file)
@@ -22,8 +22,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 # Get service config
@@ -43,12 +43,12 @@ start() {
                # starting idmapd on NFS server
                if [ -e "$RUNLEVELDIR"/S*nfs ]; then
                        if ! grep -q nfsd /proc/mounts ; then
-                               modprobe -s nfsd > /dev/null 2>&1
+                               modprobe nfsd > /dev/null 2>&1
                                run_cmd "Mounting /proc/fs/nfsd filesystem" mount -t nfsd nfsd /proc/fs/nfsd
                        fi
                fi
                if ! grep -q rpc_pipefs /proc/mounts ; then
-                       modprobe -s sunrpc >/dev/null 2>&1
+                       modprobe sunrpc >/dev/null 2>&1
                        run_cmd "Mounting /var/lib/nfs/rpc_pipefs filesystem" \
                                mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
                fi
This page took 0.031172 seconds and 4 git commands to generate.