--- mysqlnetworkctl.sh 2007-07-25 17:36:14.000000000 -0400 +++ /tmp/mysqlnetworkctl.sh 2007-07-25 17:34:22.000000000 -0400 @@ -3,7 +3,7 @@ # the path to your PID file HOSTNAME=`hostname` TOMCAT_ROOTDIR=/opt/mysql/network/monitoring/apache-tomcat -TOMCAT_PIDFILE==/opt/mysql/network/monitoring/apache-tomcat +TOMCAT_PIDFILE=/opt/mysql/network/monitoring/apache-tomcat/temp/catalina.pid MYSQL_PIDFILE=/opt/mysql/network/monitoring/mysql/data/mysqld.pid unset DISPLAY @@ -196,17 +196,7 @@ fi elif [ "x$1" = "xstatus" ]; then MYSQL_RUN=0 - APACHE_RUN=0 TOMCAT_RUN=0 - if [ "x$2" = "xapache" -o "x$2" = "x" ]; then - is_apache_running - APACHE_RUN=$? - if [ $APACHE_RUN -ne 0 ]; then - echo "MySQL Network Apache is running" - else - echo "MySQL Network Apache is not running" - fi - fi if [ "x$2" = "xmysql" -o "x$2" = "x" ]; then is_mysql_running MYSQL_RUN=$? @@ -226,7 +216,7 @@ fi fi - if [ $APACHE_RUN -eq 0 -o $TOMCAT_RUN -eq 0 -o $MYSQL_RUN -eq 0 ]; then + if [ $TOMCAT_RUN -eq 0 -o $MYSQL_RUN -eq 0 ]; then exit 3 fi exit 0