Blame SOURCES/tomcat-7.0.wrapper

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