Blame SOURCES/tomcat-preamble

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