aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index ffed07c0..82d34418 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -218,7 +218,7 @@ pidfileofproc() {
if [ -f /var/run/${base}.pid ] ; then
read pid < /var/run/${base}.pid
for p in $line ; do
- [ -z "$p##[0-9]}" -a -d /proc/$p ] && pid="$pid $p"
+ [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
done
if [ -n "$pid" ] ; then
echo $pid
@@ -242,7 +242,7 @@ pidofproc() {
local line p pid=
read line < /var/run/${base}.pid
for p in $line ; do
- [ -z "$p##[0-9]}" -a -d /proc/$p ] && pid="$pid $p"
+ [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
done
if [ -n "$pid" ] ; then
echo $pid