tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@binarix.com>
Subject Tomcat startup script
Date Sun, 19 Aug 2001 23:12:43 GMT
I guess most people would like to run Tomcat with server HotSpot if
there is one. Can we do something like this (just to save most people a
bit of configuration file editing, environment variable setting and the
like):

--- tomcat.sh   Wed Jul 18 07:24:49 2001
+++ /usr/local/tomcat/bin/tomcat.sh     Sat Aug 18 17:56:40 2001
@@ -101,7 +101,11 @@

 if [ "$JAVACMD" = "" ] ; then
    # it may be defined in env - including flags!!
-   JAVACMD=$JAVA_HOME/bin/java
+   if [ -n "`java -version 2>&1 | grep HotSpot`" ]; then
+       HOTSPOT="-server"
+   fi
+
+   JAVACMD="$JAVA_HOME/bin/java $HOTSPOT"
 fi

 ## -------------------- Prepare CLASSPATH --------------------

Bojan

Mime
View raw message