if [ -z "$PID" ] ; then echo " WAS6 is down,please restart" else echo " WAS6 is running, no action needed" fi