tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Stavrinides <p.stavrini...@albourne.com>
Subject Re: Does anyone have an approach to checking if Tomcat instance is UP?
Date Wed, 22 Aug 2007 08:37:33 GMT
In what context?? over the network?, over the web?, on the server?

There is a portion of the shell script used in a Linux implementation 
for Tomcat 5.5 that checks for the running process:

if start-stop-daemon --test --start --pidfile "$CATALINA_PID" \
                --user $TOMCAT5_USER --startas "$JAVA_HOME/bin/java" \
                >/dev/null; then

                if [ -f "$CATALINA_PID" ]; then
                    echo "$DESC is not running, but pid file exists."
                    exit 1
                else
                    echo "$DESC is not running."
                    exit 3
                fi
        else
                echo -n "$DESC is running with Java pid "
                cat "$CATALINA_PID"
                exit 0
        fi
 


Smith Norton wrote:
> No
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message