catalina.shでpwdで設定したね。
ーーー
# Only set CATALINA_HOME if not already set
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy CATALINA_BASE from CATALINA_HOME if not already set
[ -z "$CATALINA_BASE" ] && CATALINA_BASE="$CATALINA_HOME"
ーーー
使い分け:
ーーーー
# CATALINA_HOME May point at your Catalina "build" directory.
#
# CATALINA_BASE (Optional) Base directory for resolving dynamic portions
# of a Catalina installation. If not present, resolves to
# the same directory that CATALINA_HOME points to.
こんなの感じ
・ CATALINA_HOME
- /some/where/apache-tomcat-7.0.11/
※ apache-tomcat-7.0.11.tar.gz を展開したもの。
・ CATALINA_BASE (ホントに最低限の構成例)
- /some/where/my-instance/conf/server.xml
- /some/where/my-instance/lib/
- /some/where/my-instance/logs/
- /some/where/my-instance/temp/
- /some/where/my-instance/webapps/my-app.war
- /some/where/my-instance/work/