e52055
#!/bin/bash
e52055
e52055
. /usr/libexec/tomcat/functions
e52055
e52055
# Get the tomcat config (use this for environment specific settings)
e52055
e52055
if [ -z "${TOMCAT_CFG_LOADED}" ]; then
e52055
  if [ -z "${TOMCAT_CFG}" ]; then
e52055
    TOMCAT_CFG="/etc/tomcat/tomcat.conf"
e52055
  fi
e52055
  . $TOMCAT_CFG
e52055
fi
e52055
e52055
if [ -d "${TOMCAT_CONFD=/etc/tomcat/conf.d}" ]; then
e52055
  for file in ${TOMCAT_CONFD}/*.conf ; do
e52055
    if [ -f "$file" ] ; then
e52055
      . "$file"
e52055
    fi
e52055
  done
e52055
fi
e52055
e52055
if [ -z "$CATALINA_BASE" ]; then
e52055
  if [ -n "$NAME" ]; then
e52055
    if [ -z "$TOMCATS_BASE" ]; then
e52055
      TOMCATS_BASE="/var/lib/tomcats/"
e52055
    fi
e52055
    CATALINA_BASE="${TOMCATS_BASE}${NAME}"
e52055
  else
e52055
    CATALINA_BASE="${CATALINA_HOME}"
e52055
  fi
e52055
fi
e52055
VERBOSE=1
e52055
set_javacmd
e52055
cd ${CATALINA_HOME}
e52055
# CLASSPATH munging
e52055
if [ ! -z "$CLASSPATH" ] ; then
e52055
  CLASSPATH="$CLASSPATH":
e52055
fi
e52055
e52055
if [ -n "$JSSE_HOME" ]; then
e52055
  CLASSPATH="${CLASSPATH}$(build-classpath jcert jnet jsse 2>/dev/null):"
e52055
fi
e52055
CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar"
e52055
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
e52055
e52055
# Since ECJ is no longer available, add ant, ant-launcher, and tools jars to the
e52055
# classpath so that runtime compilation of JSPs still works.
e52055
CLASSPATH="${CLASSPATH}:/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar"
e52055
CLASSPATH="${CLASSPATH}:/usr/lib/jvm/java/lib/tools.jar"
e52055
e52055
if [ -z "$LOGGING_PROPERTIES" ] ; then
e52055
  LOGGING_PROPERTIES="${CATALINA_BASE}/conf/logging.properties"
e52055
  if [ ! -f "${LOGGING_PROPERTIES}" ] ; then
e52055
    LOGGING_PROPERTIES="${CATALINA_HOME}/conf/logging.properties"
e52055
  fi
e52055
fi