You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jf...@apache.org on 2004/01/19 17:44:00 UTC

cvs commit: jakarta-commons/daemon/src/native/unix/native Tomcat5.sh Tomcat.sh

jfclere     2004/01/19 08:44:00

  Modified:    daemon/src/native/unix/native Tomcat.sh
  Added:       daemon/src/native/unix/native Tomcat5.sh
  Log:
  Add the entry of Tomcat-5.0 (and arrange the other one).
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons/daemon/src/native/unix/native/Tomcat.sh
  
  Index: Tomcat.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/Tomcat.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Tomcat.sh	4 Sep 2003 23:28:20 -0000	1.1
  +++ Tomcat.sh	19 Jan 2004 16:43:59 -0000	1.2
  @@ -10,7 +10,7 @@
   #               enableLookups="true" redirectPort="8443"
   #               acceptCount="10" debug="0" connectionTimeout="60000"/>
   #
  -# You need a developement version of Tomcat (Apache Tomcat/4.1-dev)
  +# This is for of Tomcat-4.1.x (Apache Tomcat/4.1)
   #
   # Adapt the following lines to your configuration
   JAVA_HOME=/usr/java/jdk1.3.1
  
  
  
  1.1                  jakarta-commons/daemon/src/native/unix/native/Tomcat5.sh
  
  Index: Tomcat5.sh
  ===================================================================
  #!/bin/sh
  #
  # Small shell script to show how to start/stop Tomcat using jsvc
  # If you want to have Tomcat running on port 80 please modify the server.xml
  # file:
  #
  #    <!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
  #    <Connector className="org.apache.catalina.connector.http.HttpConnector"
  #               port="80" minProcessors="5" maxProcessors="75"
  #               enableLookups="true" redirectPort="8443"
  #               acceptCount="10" debug="0" connectionTimeout="60000"/>
  #
  # That is for Tomcat-5.0.x (Apache Tomcat/5.0)
  #
  # Adapt the following lines to your configuration
  JAVA_HOME=/usr/java/j2sdk1.4.2_03
  CATALINA_HOME=/home/tomcat5/jakarta-tomcat-5/build
  DAEMON_HOME=/home/tomcat5/jakarta-commons/daemon
  TOMCAT_USER=tomcat5
  TMP_DIR=/var/tmp
  CATALINA_OPTS=
  CLASSPATH=\
  $JAVA_HOME/lib/tools.jar:\
  $CATALINA_HOME/bin/commons-daemon.jar:\
  $CATALINA_HOME/bin/bootstrap.jar
  
  case "$1" in
    start)
      #
      # Start Tomcat
      #
      $DAEMON_HOME/src/native/unix/jsvc \
      -user $TOMCAT_USER \
      -home $JAVA_HOME \
      -Dcatalina.home=$CATALINA_HOME \
      -Djava.io.tmpdir=$TMP_DIR \
      -outfile $CATALINA_HOME/logs/catalina.out \
      -errfile '&1' \
      $CATALINA_OPTS \
      -cp $CLASSPATH \
      org.apache.catalina.startup.Bootstrap
      #
      # To get a verbose JVM
      #-verbose \
      # To get a debug of jsvc.
      #-debug \
      ;;
  
    stop)
      #
      # Stop Tomcat
      #
      PID=`cat /var/run/jsvc.pid`
      kill $PID
      ;;
  
    *)
      echo "Usage tomcat.sh start/stop"
      exit 1;;
  esac
  
  
  

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