Blame SOURCES/tomcat-server

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