SOURCES: rpcsvcgssd.init - fixed subsys lock

baggins baggins at pld-linux.org
Sat Mar 31 22:57:42 CEST 2007


Author: baggins                      Date: Sat Mar 31 20:57:42 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed subsys lock

---- Files affected:
SOURCES:
   rpcsvcgssd.init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/rpcsvcgssd.init
diff -u SOURCES/rpcsvcgssd.init:1.2 SOURCES/rpcsvcgssd.init:1.3
--- SOURCES/rpcsvcgssd.init:1.2	Fri Mar 30 01:07:47 2007
+++ SOURCES/rpcsvcgssd.init	Sat Mar 31 22:57:36 2007
@@ -42,7 +42,7 @@
 case "$1" in
   start)
 	# Check if the service is already running?
-	if [ ! -f /var/lock/subsys/rpcsvcgssd ]; then
+	if [ ! -f /var/lock/subsys/svcgssd ]; 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" \
@@ -55,16 +55,16 @@
 		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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpcsvcgssd.init?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list