5cb8db1cc4
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/tomcat#f60e452abe83bd7a39a5d2d676b4d9b4b325a83d
26 lines
686 B
Bash
26 lines
686 B
Bash
#!/bin/bash
|
|
|
|
. /usr/libexec/tomcat/preamble
|
|
|
|
MAIN_CLASS=org.apache.catalina.startup.Bootstrap
|
|
|
|
FLAGS="$JAVA_OPTS"
|
|
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
|
|
FLAGS="${FLAGS} $CATALINA_OPTS"
|
|
if [ "${SECURITY_MANAGER}" = "true" ] ; then
|
|
OPTIONS="${OPTIONS} \
|
|
-Djava.security.manager \
|
|
-Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy"
|
|
fi
|
|
run start
|
|
elif [ "$1" = "stop" ] ; then
|
|
run stop
|
|
fi
|