aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-05-31 21:39:22 +0000
committerBill Nottingham <notting@redhat.com>2000-05-31 21:39:22 +0000
commita2b984406f8e02ff26d6b53bce7890dc20b676b8 (patch)
treef21454df23fe90fec062a1495965564777d05d19 /rc.d/init.d/functions
parent3e56bac2b1be227fed980b9670fcd6cfe218bfa8 (diff)
downloadinitscripts-a2b984406f8e02ff26d6b53bce7890dc20b676b8.tar
initscripts-a2b984406f8e02ff26d6b53bce7890dc20b676b8.tar.gz
initscripts-a2b984406f8e02ff26d6b53bce7890dc20b676b8.tar.bz2
initscripts-a2b984406f8e02ff26d6b53bce7890dc20b676b8.tar.xz
initscripts-a2b984406f8e02ff26d6b53bce7890dc20b676b8.zip
use pidofproc ; it does its own basename (#11762)
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 26edffb3..b493fa6c 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -92,7 +92,7 @@ daemon() {
[ -z $gotbase ] && base=`basename $1`
# See if it's already running.
- pidlist=`pidofproc $base`
+ pidlist=`pidofproc $1`
pid=
for apid in $pidlist ; do
@@ -138,7 +138,7 @@ killproc() {
base=`basename $1`
# Find pid.
- pidlist=`pidofproc $base`
+ pidlist=`pidofproc $1`
pid=
for apid in $pidlist ; do