Blame SOURCES/tomcat-9.0-digest.script

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