Michael,

On 11/16/21 17:05, Michael B Allen wrote:
https://people.apache.org/~schultz/presentations/ApacheCon%20NA%202020/Splitting%20Your%20Tomcat%20Installation.pdf

Thanks. That's what I'm looking for.

Slightly related: Instead of setting environment variables in your
profile and running $CATALINA_HOME/bin/startup.sh, is there any reason
why we should not create a $CATALINA_BASE/bin/startup.sh like the
following?

#!/bin/sh
export JRE_HOME=/path/to/jre/
export CATALINA_HOME=/path/to/tomcat/
export CATALINA_BASE=/path/to/tomcat-base/
${CATALINA_HOME}/bin/catalina.sh run "$@"

and use this instead?

It seems to me this would completely separate the installation from
the host and environment.

I would not set CATALINA_BASE in my profile for a number of reasons -- the primary one being that I run multiple applications in separate Tomcats, so there is no one single CATALINA_BASE that I could set.

What you have above is, IMO, the "right" way to do things, except that I wouldn't use startup.sh -- I'd use a different script as not to conflict/confuse with the one that comes from Tomcat.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to