Author: baggins                      Date: Wed Mar 14 14:25:12 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- properly start and stop rpc.idmapd and rpc.gssd

---- Files affected:
SOURCES:
   nfsfs.init (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SOURCES/nfsfs.init
diff -u SOURCES/nfsfs.init:1.27 SOURCES/nfsfs.init:1.28
--- SOURCES/nfsfs.init:1.27     Thu Oct 19 12:31:49 2006
+++ SOURCES/nfsfs.init  Wed Mar 14 15:25:07 2007
@@ -49,9 +49,13 @@
                        if [ ! -f /var/lock/subsys/idmapd ]; then
                            msg_starting "NFS idmapd"
                            daemon rpc.idmapd $RPCIDMAPOPTIONS
+                           [ $? -eq 0 ] && touch /var/lock/subsys/idmapd
+                       fi
+                       if [ ! -f /var/lock/subsys/gssd ]; then
+                           msg_starting "NFS gssd"
+                           daemon rpc.gssd -m $RPCGSSOPTIONS
+                           [ $? -eq 0 ] && touch /var/lock/subsys/gssd
                        fi
-                       msg_starting "NFS gssd"
-                       daemon rpc.gssd -m $RPCGSSOPTIONS
                    fi
                fi
            run_cmd "Mounting NFS filesystems" mount -a -t nfs
@@ -83,8 +87,11 @@
        ok
        if is_yes "$NFS4" ; then
                if grep -q nfs4 /proc/filesystems; then
-                   msg_stopping "NFS gssd"
-                   killproc rpc.gssd
+                   if [ -f /var/lock/subsys/gssd ]; then
+                       msg_stopping "NFS gssd"
+                       killproc rpc.gssd
+                       rm -f /var/lock/subsys/gssd
+                   fi
                    if [ -f /var/lock/subsys/idmapd -a ! -f 
/var/lock/subsys/nfs ]; then
                        msg_stopping "NFS idmapd"
                        killproc rpc.idmapd
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/nfsfs.init?r1=1.27&r2=1.28&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to