From 4601034e6c7c65b5e6c6af47ffd6de0cb33648d1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 9 Jul 2001 05:49:47 +0000 Subject: it helps if you name the variable the same thing as what you're checking --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1