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 ==========================
*** This bug has been marked as a duplicate of 1722 ***