if [ -z "$(netstat -lnp | grep 8080)" ]
then
    echo "Tomcat running"
    exit -1
else
    [ continue with startup-script ]
fi

do the same for port 8009 (AJP)

however, the best way would be to first check if tomcat is running
before starting it up....

remember:

a fool with a tool is still a fool...

gregor


-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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

Reply via email to