]> git.pld-linux.org Git - packages/nfs-utils.git/blobdiff - rpcsvcgssd.init
- updated to 1.1.0-rc1
[packages/nfs-utils.git] / rpcsvcgssd.init
index b1dea583b5764ce58d051f6315071a71df35aa67..ef29959002560f00904acf7f42f6ceb572a38588 100644 (file)
@@ -42,11 +42,11 @@ RETVAL=0
 case "$1" in
   start)
        # Check if the service is already running?
-       if [ ! -f /var/lock/subsys/rpcsvcgssd ]; then
-               if ! grep -q rpc_pipefs /proc/mounts ; then
-                       modprobe -s 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
+       if [ ! -f /var/lock/subsys/svcgssd ]; then
+               # We need /proc/fs/nfsd mounted before starting svcgssd
+               if ! grep -q nfsd /proc/mounts ; then
+                       modprobe -s nfsd > /dev/null 2>&1
+                       run_cmd "Mounting /proc/fs/nfsd filesystem" mount -t nfsd nfsd /proc/fs/nfsd
                fi
                # Load rpcsec modules
                for i in ${SECURE_NFS_MODS} ; do 
@@ -55,16 +55,16 @@ case "$1" in
                msg_starting "RPC svcgssd"
                daemon rpc.svcgssd $RPCSVCGSSOPTIONS
                RETVAL=$?
-               [ $RETVAL = 0 ] && touch /var/lock/subsys/rpcsvcgssd
+               [ $RETVAL = 0 ] && touch /var/lock/subsys/svcgssd
        else
                msg_already_running "RPC svcgssd"
        fi
        ;;
   stop)
-       if [ -f /var/lock/subsys/rpcsvcgssd ]; then
+       if [ -f /var/lock/subsys/svcgssd ]; then
                msg_stopping "RPC svcgssd"
                killproc rpc.svcgssd
-               rm -f /var/lock/subsys/rpcsvcgssd
+               rm -f /var/lock/subsys/svcgssd
        else
                msg_not_running "RPC svcgssd"
        fi
This page took 0.061982 seconds and 4 git commands to generate.