[Lunar-commits] r14865 - lunar/trunk/lib/lsb
Moritz Heiber
moe at lunar-linux.org
Fri May 20 11:17:22 UTC 2005
Author: moe
Date: 2005-05-20 11:17:21 +0000 (Fri, 20 May 2005)
New Revision: 14865
Modified:
lunar/trunk/lib/lsb/init-functions
Log:
Adding an '-o' to the mkpid call since pgrep would
fetch more than one pid some cases.
Permission granted by sofar ;-)
Modified: lunar/trunk/lib/lsb/init-functions
===================================================================
--- lunar/trunk/lib/lsb/init-functions 2005-05-20 09:50:23 UTC (rev 14864)
+++ lunar/trunk/lib/lsb/init-functions 2005-05-20 11:17:21 UTC (rev 14865)
@@ -178,7 +178,7 @@
mkpid () {
if [ ! -e $PIDFILE ] ; then
echo -n "[PID] "
- /bin/pgrep -P 1 "^$PROCESS_BASE$" > $PIDFILE && return 0 || return -1
+ /bin/pgrep -o -P 1 "^$PROCESS_BASE$" > $PIDFILE && return 0 || return -1
else
return
fi
More information about the Lunar-commits
mailing list