Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
tomcat_administration:start [2016/11/22 11:33] marco.staub |
tomcat_administration:start [2022/05/13 14:27] marco.staub [1.2 - rc.sh] |
||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
==== 1.2 - rc.sh ==== | ==== 1.2 - rc.sh ==== | ||
<code> | <code> | ||
- | #!/usr/bin/sh | + | #!/bin/sh |
- | # rc.sh | + | |
### Start Config ### | ### Start Config ### | ||
- | TOMCAT_VERSION=8.5.8 | + | |
+ | TOMCAT_VERSION=10.0.20 | ||
INSTANCE_NAME=workshop | INSTANCE_NAME=workshop | ||
- | INSTANCE_VERSION=1.0 | ||
### End Config #### | ### End Config #### | ||
CATALINA_HOME=/opt/tomcat/products/${TOMCAT_VERSION} | CATALINA_HOME=/opt/tomcat/products/${TOMCAT_VERSION} | ||
- | CATALINA_BASE=/opt/tomcat/instances/${INSTANCE_NAME}/${INSTANCE_VERSION} | + | CATALINA_BASE=/opt/tomcat/instances/${INSTANCE_NAME} |
export CATALINA_HOME | export CATALINA_HOME | ||
Zeile 22: | Zeile 21: | ||
case "$1" in | case "$1" in | ||
- | start) | + | start) |
- | $CATALINA_HOME/bin/startup.sh | + | $CATALINA_HOME/bin/startup.sh |
- | ;; | + | ;; |
- | stop) | + | stop) |
- | $CATALINA_HOME/bin/shutdown.sh | + | $CATALINA_HOME/bin/shutdown.sh |
- | ;; | + | ;; |
- | *) | + | *) |
- | echo "Usage: $0 {start|stop}" | + | echo "Usage: $0 {start|stop}" |
- | exit 1 | + | exit 1 |
- | ;; | + | ;; |
esac | esac | ||
</code> | </code> |