#!/bin/bash

while ( true ) ; do
  if [ "`ps -ef | grep java | wc -l`" -le "1" ] ; then
     /user/local/server/tomcat/bin/catalina.sh start
  fi
break
done