I screwed up the last bug report, this is the change that needs to be made From =============== else pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'` if [ "$pid" != "" ] ; then echo "$1 $2 (pid $pid) is running..." return 0 fi fi ============= to ============= elseif [ "$2" != "" ] pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'` if [ "$pid" != "" ] ; then echo "$1 $2 (pid $pid) is running..." return 0 fi fi =============
*** Bug 1721 has been marked as a duplicate of this bug. *** I really don't know why I should help since you guys seem to becoming half MicroSoft and have open source in your mentality, but just because you guys have been good in the past, am I willing to help you fix a brain dead mistake. You should check to see if $2 is equal to null first before using it in /etc/rc.d/init.d/functions Change =============================== else [ "$2" != "" ] pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'` if [ "$pid" != "" ] ; then echo "$1 $2 (pid $pid) is running..." return 0 fi fi =========================== to ========================= elseif [ "$2" != "" ] pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'` if [ "$pid" != "" ] ; then echo "$1 $2 (pid $pid) is running..." return 0 fi fi ==========================
fixed in initscripts-3.97-2. possibly also fixed at some point earlier.