Blame SOURCES/tomcat-preamble

0797b1
#!/bin/bash
0797b1
0797b1
. /usr/libexec/tomcat/functions
0797b1
0797b1
# Get the tomcat config (use this for environment specific settings)
0797b1
0797b1
if [ -z "${TOMCAT_CFG_LOADED}" ]; then
0797b1
  if [ -z "${TOMCAT_CFG}" ]; then
0797b1
    TOMCAT_CFG="/etc/tomcat/tomcat.conf"
0797b1
  fi
0797b1
  . $TOMCAT_CFG
0797b1
fi
0797b1
0797b1
if [ -d "${TOMCAT_CONFD=/etc/tomcat/conf.d}" ]; then
0797b1
  for file in ${TOMCAT_CONFD}/*.conf ; do
0797b1
    if [ -f "$file" ] ; then
0797b1
      . "$file"
0797b1
    fi
0797b1
  done
0797b1
fi
0797b1
0797b1
if [ -z "$CATALINA_BASE" ]; then
0797b1
  if [ -n "$NAME" ]; then
0797b1
    if [ -z "$TOMCATS_BASE" ]; then
0797b1
      TOMCATS_BASE="/var/lib/tomcats/"
0797b1
    fi
0797b1
    CATALINA_BASE="${TOMCATS_BASE}${NAME}"
0797b1
  else
0797b1
    CATALINA_BASE="${CATALINA_HOME}"
0797b1
  fi
0797b1
fi
0797b1
VERBOSE=1
0797b1
set_javacmd
0797b1
cd ${CATALINA_HOME}
0797b1
# CLASSPATH munging
0797b1
if [ ! -z "$CLASSPATH" ] ; then
0797b1
  CLASSPATH="$CLASSPATH":
0797b1
fi
0797b1
0797b1
if [ -n "$JSSE_HOME" ]; then
0797b1
  CLASSPATH="${CLASSPATH}$(build-classpath jcert jnet jsse 2>/dev/null):"
0797b1
fi
0797b1
CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar"
0797b1
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
0797b1
CLASSPATH="${CLASSPATH}:$(build-classpath commons-daemon 2>/dev/null)"
0797b1
0797b1
if [ -z "$LOGGING_PROPERTIES" ] ; then
0797b1
  LOGGING_PROPERTIES="${CATALINA_BASE}/conf/logging.properties"
0797b1
  if [ ! -f "${LOGGING_PROPERTIES}" ] ; then
0797b1
    LOGGING_PROPERTIES="${CATALINA_HOME}/conf/logging.properties"
0797b1
  fi
0797b1
fi