tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Schneider" <>
Subject Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.
Date Wed, 28 Nov 2007 16:10:03 GMT
if [ -z "$(netstat -lnp | grep 8080)" ]
    echo "Tomcat running"
    exit -1
    [ continue with startup-script ]

do the same for port 8009 (AJP)

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


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


what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message