122197843b
- package was partly merged with the scripts used in the Fedora distribution - support running multiple tomcat instances on the same server (fate#317783) - add catalina-jmx-remote.jar (fate#318403) - remove sysvinit support: systemd is required OBS-URL: https://build.opensuse.org/request/show/385746 OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=83
26 lines
682 B
Bash
26 lines
682 B
Bash
#!/bin/bash
|
|
|
|
. /usr/lib/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
|