-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek,

Derek Alexander wrote:
> Using: 
> $CATALINA_HOME/bin/catalina.sh stop
> $CATALINA_HOME/bin/catalina.sh start
> in quick succession to restart Tomcat,
> it is possible that the start operation will run before all ports have been
> released by the instance I'm stopping.

Yes.

> Is there a synchronous method for stopping Tomcat, i.e. one that won't
> return until the ports have been released at least?

Not that I know of. Lots of folks have posted to the list somewhat
recently asking basically the same question: how do you know when Tomcat
has really stopped?

The best hack I've heard of is to watch the catalina.out log file for
the magic "Tomcat Stopped" message. Another option would be to actually
poll the port to see if it's available. They're both pretty ugly options.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG4HYN9CaO5/Lv0PARAhdOAJ4y5YoCK10SuLvAp/xbaBC35jvlbgCgv01O
giDep97OsHCWtx/OBoGzbf0=
=3cJP
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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