Blame SOURCES/tomcat-7.0-tool-wrapper.script

262920
#!/bin/sh
262920
#
262920
# tomcat-digest script
262920
# JPackage Project <http://www.jpackage.org/>
262920
262920
# Source functions library
262920
if [ -f /usr/share/java-utils/java-functions ] ; then
262920
  . /usr/share/java-utils/java-functions
262920
else
262920
  echo "Can't find functions library, aborting"
262920
  exit 1
262920
fi
262920
262920
# Get the tomcat config (use this for environment specific settings)
262920
if [ -z "${TOMCAT_CFG}" ]; then
262920
    TOMCAT_CFG="/etc/tomcat/tomcat.conf"
262920
fi
262920
262920
if [ -r "$TOMCAT_CFG" ]; then
262920
    . $TOMCAT_CFG
262920
fi
262920
262920
set_javacmd
262920
262920
# CLASSPATH munging
262920
if [ -n "$JSSE_HOME" ]; then
262920
  CLASSPATH="${CLASSPATH}:$(build-classpath jcert jnet jsse 2>/dev/null)"
262920
fi
262920
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar"
262920
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
262920
export CLASSPATH
262920
262920
# Configuration
262920
MAIN_CLASS="org.apache.catalina.startup.Tool"
262920
BASE_OPTIONS=""
262920
BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\""
262920
BASE_JARS="commons-daemon tomcat/catalina servlet"
262920
262920
# Set parameters
262920
set_classpath $BASE_JARS
262920
set_flags $BASE_FLAGS
262920
set_options $BASE_OPTIONS
262920
262920
# Let's start
262920
run "$@"