aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-09 05:49:47 +0000
committerBill Nottingham <notting@redhat.com>2001-07-09 05:49:47 +0000
commit4601034e6c7c65b5e6c6af47ffd6de0cb33648d1 (patch)
treea6e254b01ea189730ba417676f6b94ad01025c7c
parent91562a41c45955073c2f483c4be2e4fdd710e9ce (diff)
downloadinitscripts-4601034e6c7c65b5e6c6af47ffd6de0cb33648d1.tar
initscripts-4601034e6c7c65b5e6c6af47ffd6de0cb33648d1.tar.gz
initscripts-4601034e6c7c65b5e6c6af47ffd6de0cb33648d1.tar.bz2
initscripts-4601034e6c7c65b5e6c6af47ffd6de0cb33648d1.tar.xz
initscripts-4601034e6c7c65b5e6c6af47ffd6de0cb33648d1.zip
it helps if you name the variable the same thing as what you're checking
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 382687e7..3b147f5b 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -117,7 +117,7 @@ daemon() {
[ -z $gotbase ] && base=${1##*/}
# See if it's already running. Look *only* at the pid file.
- pidlist=`pidfileofproc $base`
+ pid=`pidfileofproc $base`
[ -n "${pid:-}" ] && return