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 2002/02/26 23:22:04 UTC
cvs commit: jakarta-commons-sandbox/daemon/src/native/unix/native Tomcat.sh
jfclere 02/02/26 14:22:04
Added: daemon/src/native/unix/native Tomcat.sh
Log:
rc like shell script to demonstrate the jsvc features.
Revision Changes Path
1.1 jakarta-commons-sandbox/daemon/src/native/unix/native/Tomcat.sh
Index: Tomcat.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"/>
#
# You need a developement version of Tomcat (Apache Tomcat/4.1-dev)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/jdk1.3.1
CATALINA_HOME=/home1/jakarta/jakarta-tomcat-4.1/build
DAEMON_HOME=/home1/jakarta/jakarta-commons-sandbox/daemon
TOMCAT_USER=jakarta
TMP_DIR=/var/tmp
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
case "$1" in
start)
#
# Start Tomcat
#
$DAEMON_HOME/dist/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-cp $CLASSPATH
org.apache.catalina.startup.BootstrapService
#
# 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>