2013-06-11 17:35:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. /usr/libexec/tomcat/preamble
|
|
|
|
|
|
|
|
MAIN_CLASS=org.apache.catalina.startup.Bootstrap
|
|
|
|
|
2014-09-21 00:11:01 +00:00
|
|
|
FLAGS="$JAVA_OPTS"
|
2013-06-11 17:35:03 +00:00
|
|
|
OPTIONS="-Dcatalina.base=$CATALINA_BASE \
|
|
|
|
-Dcatalina.home=$CATALINA_HOME \
|
|
|
|
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
|
|
|
|
-Djava.io.tmpdir=$CATALINA_TMPDIR \
|
|
|
|
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
|
|
|
|
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
|
|
|
|
|
|
|
|
if [ "$1" = "start" ] ; then
|
2015-11-17 22:42:26 +00:00
|
|
|
FLAGS="${FLAGS} $CATALINA_OPTS"
|
2013-06-11 17:35:03 +00:00
|
|
|
if [ "${SECURITY_MANAGER}" = "true" ] ; then
|
|
|
|
OPTIONS="${OPTIONS} \
|
|
|
|
-Djava.security.manager \
|
2013-11-03 20:04:06 +00:00
|
|
|
-Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy"
|
2013-06-11 17:35:03 +00:00
|
|
|
fi
|
|
|
|
run start
|
|
|
|
elif [ "$1" = "stop" ] ; then
|
|
|
|
run stop
|
|
|
|
fi
|