aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-09 05:50:12 +0000
committerBill Nottingham <notting@redhat.com>2001-07-09 05:50:12 +0000
commit196a77dbd38d11f22cd9960d943d572da3a5a843 (patch)
treeab81bb3974b046c4871a11127845c864ca529cab
parent079d1ac105c27a9ca3ba0ea4fe374b7e900c5588 (diff)
downloadinitscripts-196a77dbd38d11f22cd9960d943d572da3a5a843.tar
initscripts-196a77dbd38d11f22cd9960d943d572da3a5a843.tar.gz
initscripts-196a77dbd38d11f22cd9960d943d572da3a5a843.tar.bz2
initscripts-196a77dbd38d11f22cd9960d943d572da3a5a843.tar.xz
initscripts-196a77dbd38d11f22cd9960d943d572da3a5a843.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 a4ac7719..ee2704c4 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -116,7 +116,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