Blame SOURCES/tomcat-7.0-digest.script

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