pki-servlet-engine/tomcat-8.0.wrapper
Ivan Afonichev 53dd1361b3 Updated to 8.0.12
Substitute libnames in catalina-tasks.xml, resolves: rhbz#1126439
Use CATALINA_OPTS only on start, resolves: rhbz#1051194
2014-09-21 04:11:01 +04:00

25 lines
564 B
Bash

#!/bin/bash
if [ "$1" = "version" ]; then
. /usr/libexec/tomcat/preamble
exec ${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \
org.apache.catalina.util.ServerInfo
fi
SRV="tomcat"
if [ -n "$2" ]; then
SRV="tomcat@$2"
fi
if [ "$1" = "start" ]; then
systemctl start ${SRV}.service
elif [ "$1" = "stop" ]; then
systemctl stop ${SRV}.service
elif [ "$1" = "version" ]; then
${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \
org.apache.catalina.util.ServerInfo
else
echo "Usage: $0 {start|stop|version} [server-id]"
exit 1
fi