Blame SOURCES/tomcat-server

9d02a3
#!/bin/bash
9d02a3
9d02a3
. /usr/libexec/tomcat/preamble
9d02a3
9d02a3
MAIN_CLASS=org.apache.catalina.startup.Bootstrap
9d02a3
9d02a3
FLAGS="$JAVA_OPTS"
9d02a3
OPTIONS="-Dcatalina.base=$CATALINA_BASE \
9d02a3
-Dcatalina.home=$CATALINA_HOME \
9d02a3
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
9d02a3
-Djava.io.tmpdir=$CATALINA_TMPDIR \
9d02a3
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
9d02a3
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
9d02a3
9d02a3
if [ "$1" = "start" ] ; then
9d02a3
  FLAGS="${FLAGS} $CATALINA_OPTS"
9d02a3
  if [ "${SECURITY_MANAGER}" = "true" ] ; then
9d02a3
    OPTIONS="${OPTIONS} \
9d02a3
    -Djava.security.manager \
9d02a3
    -Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy"
9d02a3
  fi
9d02a3
  run start
9d02a3
elif [ "$1" = "stop" ] ; then
9d02a3
  run stop
9d02a3
fi