aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-25 22:12:19 +0000
committerBill Nottingham <notting@redhat.com>2005-04-25 22:12:19 +0000
commit2b4f68e224c2fd4b472176f107f7f5aac125ef80 (patch)
treefe7ad420b396888e11cce83f24879c3ded2b4d28 /rc.d/init.d
parent969968447db802f55acc6587cbb399ac6afde5d3 (diff)
downloadinitscripts-2b4f68e224c2fd4b472176f107f7f5aac125ef80.tar
initscripts-2b4f68e224c2fd4b472176f107f7f5aac125ef80.tar.gz
initscripts-2b4f68e224c2fd4b472176f107f7f5aac125ef80.tar.bz2
initscripts-2b4f68e224c2fd4b472176f107f7f5aac125ef80.tar.xz
initscripts-2b4f68e224c2fd4b472176f107f7f5aac125ef80.zip
use pidof -c in various functions
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 29661799..a7c8fcab 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -183,8 +183,8 @@ killproc() {
done
fi
if [ -z "$pid" ]; then
- pid=`pidof -o $$ -o $PPID -o %PPID -x $1 || \
- pidof -o $$ -o $PPID -o %PPID -x $base`
+ pid=`pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
+ pidof -c -o $$ -o $PPID -o %PPID -x $base`
fi
# Kill it.
@@ -272,8 +272,8 @@ pidofproc() {
return 0
fi
fi
- pidof -o $$ -o $PPID -o %PPID -x $1 || \
- pidof -o $$ -o $PPID -o %PPID -x $base
+ pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
+ pidof -c -o $$ -o $PPID -o %PPID -x $base
}
status() {