SOURCES: lstat.init - mv /usr/bin/lstatd{, .pl} to avoid bogus entr...

sls sls at pld-linux.org
Sat Nov 24 18:29:17 CET 2007


Author: sls                          Date: Sat Nov 24 17:29:17 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- mv /usr/bin/lstatd{,.pl} to avoid bogus entries in pidfile
  ("pidof -x lstatd" catches _bindir/lstad and _initdir/lstatd)

---- Files affected:
SOURCES:
   lstat.init (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/lstat.init
diff -u SOURCES/lstat.init:1.6 SOURCES/lstat.init:1.7
--- SOURCES/lstat.init:1.6	Sat Sep 27 00:37:42 2003
+++ SOURCES/lstat.init	Sat Nov 24 18:29:11 2007
@@ -11,7 +11,8 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-lstatd="/usr/bin/lstatd"
+lstatd_name="lstatd.pl"
+lstatd="/usr/bin/$lstatd_name"
 pidfile=/var/run/lstatd.pid
 flags=''
 
@@ -23,7 +24,7 @@
 		msg_starting lstatd
 		daemon $lstatd $flags
 		RETVAL=$?
-		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/lstatd && pidof -x lstatd > $pidfile
+		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/lstatd && pidof -x $lstatd_name > $pidfile
 	else
 		msg_already_running lstatd
 	fi
@@ -43,7 +44,7 @@
 	exit $?
 	;;
   status)
-	status lstatd
+	status $lstatd_name
 	exit $?
 	;;
   debug)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lstat.init?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list