tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Start/StopTomcat and ajpid
Date Fri, 01 Mar 2002 16:07:29 GMT
We can look at reading server.xml in 3.3.2, but
I think it would be too complicated to attempt in
3.3.1.  We would need a new limited startup parameter
like jkconf or an alternate set of XMLMapper rules for
reading server.xml.

Cheers,
Larry

> -----Original Message-----
> From: GOMEZ Henri [mailto:hgomez@slib.fr]
> Sent: Friday, March 01, 2002 9:39 AM
> To: Tomcat Developers List
> Subject: RE: Start/StopTomcat and ajpid
> 
> 
> >Since the connector writes the ajp??.id file, it makes
> >sense to me to allow an attribute to specify it's
> >location.  However, agree that we should provide a
> >way to override the location from the command line on
> >startup.  I'll see what I can do for Tomcat 3.3.1 Final.
> 
> Related is since we read server.xml at startup where
> ajpid is specified, we should reread server.xml at stop time.
> 
> 
> Or we must remove the ajpid attrib from server.xml since it 
> could be useable at start/stop time only via commandline
> 
> >Cheers,
> >Larry
> >
> >> -----Original Message-----
> >> From: GOMEZ Henri [mailto:hgomez@slib.fr]
> >> Sent: Friday, March 01, 2002 4:57 AM
> >> To: Tomcat Developers List
> >> Subject: Start/StopTomcat and ajpid
> >> 
> >> 
> >> There is no response to my previous mail about ajpid
> >> for start/stop of Tomcat 3.3.
> >> 
> >> 
> >> 
> >> -
> >> Henri Gomez                 ___[_]____
> >> EMAIL : hgomez@slib.fr        (. .)                     
> >> PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
> >> 
> >> 
> >> 
> >> >-----Original Message-----
> >> >From: GOMEZ Henri 
> >> >Sent: Wednesday, February 27, 2002 11:34 AM
> >> >To: Tomcat Developers List
> >> >Subject: RE: cvs commit:
> >> >jakarta-tomcat/src/share/org/apache/tomcat/startup StopTomcat.java
> >> >
> >> >
> >> >Let me resume and tag the correct behaviour :
> >> >
> >> >to start/stop with ajp12 :
> >> >
> >> >startup.sh -ajpid /var/spool/tomcat3/ajp12.id -ajp12
> >> >shutdown.sh -ajpid /var/spool/tomcat3/ajp12.id -ajp12
> >> >
> >> >to start/stop with ajp13 :
> >> >
> >> >startup.sh -ajpid /var/spool/tomcat3/ajp13.id -ajp13
> >> >shutdown.sh -ajpid /var/spool/tomcat3/ajp13.id -ajp13
> >> >
> >> >If tomcat didn't read server.xml at stop time, 
> >> >it may be better to remove AjpidFile from server.xml to avoid
> >> >such problems and make it setable only in command line ?
> >> >
> >> >-
> >> >Henri Gomez                 ___[_]____
> >> >EMAIL : hgomez@slib.fr        (. .)                    
> >> >PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
> >> >PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >> >
> >> >
> >> >-----Original Message-----
> >> >From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> >> >Sent: Wednesday, February 27, 2002 1:01 AM
> >> >To: Tomcat Developers List
> >> >Subject: RE: cvs commit: 
> >> >jakarta-tomcat/src/share/org/apache/tomcat/startup StopTomcat.java
> >> >
> >> >
> >> >Hi Henri,
> >> >
> >> >With implementation of the "ajp12.id" file, stopTomcat() 
> >quit reading
> >> >the server.xml file (StopTomcat.java v1.2).  It appears 
> the comment
> >> >about searching for the AJP12 connector has been out of date for a
> >> >while.
> >> >
> >> >For situations where the "ajp??.id" file is in a non-default
> >> >location, the "-ajpid" command line argument must be used 
> to specify
> >> >the alternate location.  Specifying the "-ajp12" or 
> "-ajp13" is also
> >> >recommended.  I still need to update the Users Guide to 
> >mention these
> >> >new arguments.
> >> >
> >> >Cheers,
> >> >Larry
> >> >
> >> >-----Original Message----- 
> >> >From: GOMEZ Henri [mailto:hgomez@slib.fr] 
> >> >Sent: Tue 2/26/2002 4:38 PM 
> >> >To: Tomcat Developers List 
> >> >Cc: 
> >> >Subject: RE: cvs commit: 
> >> >jakarta-tomcat/src/share/org/apache/tomcat/startup StopTomcat.java
> >> >
> >> >There is a problem with that patch : 
> >> >    void stopTomcat() throws Exception { 
> >> >        // if a parameter isn't set, try to read it from a file 
> >> >        if( port < 0 || host == null || secret == null ) { 
> >> >            String tchome=getTomcatHome(); 
> >> >            String defAjp12File=tchome + "/conf/ajp12.id"; 
> >> >            String defAjp13File=tchome + "/conf/ajp13.id"; 
> >> >            String ajpFile=secretFile; 
> >> >            int portSave=port; 
> >> >            String hostSave=host; 
> >> >            String secretSave=secret; 
> >> >            boolean pickAjp=(!isAjp13 && !isAjp12); 
> >> >What happen if you put ajp12.id or ajp13.id, in another location 
> >> >using : 
> >> >        <Ajp12Connector address="127.0.0.1" port="8007" 
> >> >AjpidFile="/var/spool/tomcat3/ajp12.id" /> 
> >> >        <Ajp13Connector port="8009" 
> >> >AjpidFile="/var/spool/tomcat3/ajp13.id" /> 
> >> >
> >> 
> >
> >--
> >To unsubscribe, e-mail:   
> <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-dev-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message