Christopher,
Did you take a look at my scripts ?
tomcat3 starter :
#!/bin/sh
#
# Wrapper script for Tomcat, to be sure it will allways
# be run with correct user profile (tomcat by default)
#
# derived from stuff in tomcat.init
#
# Gomez Henri <[EMAIL PROTECTED]>
# Keith Irwin <[EMAIL PROTECTED]>
# Nicolas Mailhot <[EMAIL PROTECTED]>
#
# Get Tomcat config
TOMCAT_CFG="/etc/tomcat3/conf/tomcat3.conf"
[ -r "$TOMCAT_CFG" ] && . "${TOMCAT_CFG}"
# Path to the tomcat launch script
TOMCAT_SCRIPT=/usr/bin/dtomcat3
......
I exec config file if it exist (/etc/tomcat3/conf/tomcat3.conf)
which is turn set the env vars :
tomcat3.conf file
# tomcat /etc/rc.d script example configuration file
# Use with version 1.07 of the scripts or later
# Where your java installation lives
# JAVA_HOME=/usr/java/jdk
JAVA_HOME="/opt/IBMJava2-13"
# You can pass some parameters to java
# here if you wish to
#JAVACMD="$JAVA_HOME/bin/java -Xminf0.1 -Xmaxf0.3"
# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
TOMCAT_HOME="/etc/tomcat3"
# Where our webapps/libs are now installed.
TOMCAT_INSTALL="/var/tomcat3"
# What user should run tomcat
TOMCAT_USER="tomcat3"
# You can change your tomcat locale here
#LANG=en_US
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)
So experienced and beginner will JUST have to :
- Comment JAVA_HOME="/opt/IBMJava2-13" in config file
for auto-exploration
- Set JAVA_HOME in config file to specify WHICH JVM they
want to be used with Tomcat3 (and since TC 4 use another
config file, it could be used at the same time with the
same or a different JVM).
Best of both worlds
This config stuff came from discution on this this list with
Keith Irwin and Nicolas Mailhot :)
-
Henri Gomez ___[_]____
EMAIL : [EMAIL PROTECTED] (. .)
PGP KEY : 697ECEDD ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>