]> git.pld-linux.org Git - packages/nfs-utils.git/blobdiff - rpcgssd.init
- build toolchain cleanups from Chuck Lever's git
[packages/nfs-utils.git] / rpcgssd.init
index 4d67756e22a0b61bd8a6e951d7422532663242e6..38ae48ce5d23d863a4709a1071ed7295fafdab52 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
@@ -41,7 +41,7 @@ start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/gssd ]; then
                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.027434 seconds and 4 git commands to generate.