SVN: rc-scripts/trunk/rc.d/init.d/functions
blues
blues at pld-linux.org
Sat Apr 14 23:55:53 CEST 2007
Author: blues
Date: Sat Apr 14 23:55:47 2007
New Revision: 8458
Modified:
rc-scripts/trunk/rc.d/init.d/functions
Log:
- allow to have more than one line in pidfile
Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions (original)
+++ rc-scripts/trunk/rc.d/init.d/functions Sat Apr 14 23:55:47 2007
@@ -666,10 +666,9 @@
pidfile="/var/run/${pidfile}";
fi
if [ -f "${pidfile}" ] ; then
- typeset line p pid
+ typeset p pid
pid=
- read line < "${pidfile}"
- for p in $line; do
+ for p in $(< "${pidfile}"); do
[ -z "$(echo "$p" | awk '{gsub(/[0-9]/,"");print;}')" ] && pid="$pid $p"
done
fi
More information about the pld-cvs-commit
mailing list