You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brock Barber <bb...@mcnairbd.com> on 2001/03/07 18:30:54 UTC

Stopping the correct tomcat for a virtual host

Hi

I'm working with several virtual hosts, apache 1.3.12 + mod_ssl + mod_jk
+ tomcat 3.2.1.  I start an instance of tomcat for each virtual host so
I can kill the tomcat associatted with a site, without affecting all the
sites.  I have set up different ports for Ajpv 12, Ajpv 13 connectors
associatted with each instance of tomcat.

Is there a way to aim tomcat.sh at the correct port to stop a particular
instance of tomcat. I looked in the script and couldn't find any mention
of the Ajpv12 port.


******************************************************
	Brock Barber
	Applications Group
	MBD (McNair Business Development Inc.)

	Direct: 789-0019
	Fax: 789-7630
	E-Mail: bbarber@mcnairbd.com <ma...@mcnairbd.com>
	www.mcnairbd.com

	A head for business.
******************************************************


Re: Stopping the correct tomcat for a virtual host

Posted by Shahed Ali <sh...@enoor.com>.
I am doing the same thing, except I have multiple tomcat.sh files
for each context and corrosponding multiple server.xml files 
Eg 
tomcata.sh -> servera.xml
tomcatb.sh -> serverb.xml

When I want to stop context a, I give tomcata.sh -f servera.xml  stop
(or whaterver the correct syntax is)

tomcat.sh wil read the port from server.xml and stop the corrrect context.

Regards
Shahed