You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cy...@nexans.com on 2005/03/31 13:40:17 UTC

Réf. : start/stop-script from source dist

Andreas,

If your need is to restart a webapp, you can use ant to access the
following URL (assuming you run the command on the same server than tomcat)
:

here is the target in the build.xml file

  <target name="reload">
    <get src
="http://{tomcatserver}:{port}/manager/html/stop?path/{webappname}" dest
="/dev/null" usetimestamp="true" username="{your user name}" password
="{your admin password}" ignoreerrors="true" />
    <get src
="http://{tomcatserver}:{port}/manager/html/start?path/{webappname}" dest
="/dev/null" usetimestamp="true" username="{your user name}" password
="{your admin password}" ignoreerrors="true" />
  </target>

then run the script with :

>   ant reload

That's the way we do that.

Cyril ZEKSER


                                                                                                                                       
                      Andreas                                                                                                          
                      Andersson                Pour :   Tomcat Users List <to...@jakarta.apache.org>                             
                      <andreas@travels         cc :                                                                                    
                      tart.se>                 Objet :  start/stop-script from source dist                                             
                                                                                                                                       
                      31/03/2005 13:27                                                                                                 
                      Veuillez                                                                                                         
                      répondre à                                                                                                       
                      "Tomcat Users                                                                                                    
                      List"                                                                                                            
                                                                                                                                       
                                                                                                                                       




Is there a start/stop-script in the source distribution thats suitable
to run from /etc/init.d on linux?

Or is there a way to make one automatically?
--
Andreas Andersson
IT Dept.
Travelstart Nordic
andreas@travelstart.se
http://www.travelstart.se

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org