tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albretch Mueller" <lbrt...@gmail.com>
Subject set env. variables in tomcat's running JVM
Date Tue, 25 Dec 2007 14:54:05 GMT
~
 I am using TC 4.1.36 and I need to set the directory where the
webapps and log files are located at run time in the  catalina.sh
startup file as part of the JAVA_OPTS
~
 JAVA_OPTS=$JAVA_OPTS:-Dconfig.webapps.dir="/media/sdb5/webapps"
 JAVA_OPTS=$JAVA_OPTS:-Dconfig.logs.dir="/media/sdb5/logs"
~
 and then in the $TOMCAT_HOME/conf/server.xml file
~
 I need to set it like this:
~
 <Host name="localhost"
       appBase="{$config.webapps.dir}"
       debug="4"
       unpackWARs="true" autoDeploy="true">
~
 <Logger className="org.apache.catalina.logger.FileLogger"
         directory="{$config.logs.dir}"
         prefix="localhost_log."
         suffix=".txt"
         timestamp="true"/>
~
 How can you do that?
~
 Thanks
 lbrtchx

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message