This commit is contained in:
2022-12-06 13:15:58 +08:00
parent 17339d3259
commit a0849e40ef
52 changed files with 463 additions and 43 deletions

View File

@@ -6,6 +6,7 @@
# - /opt/tomcat/logs #
# ENV #
# - JAVA_OPTS #
# - CATALINA_OUT #
##################################################
set -euo pipefail
@@ -14,6 +15,7 @@ trap Quit EXIT
PIDS=
GOT_SIGTERM=
CATALINA_OUT=${CATALINA_OUT:-/dev/null}
export JAVA_OPTS="-server -Djava.security.egd=file:/dev/./urandom -Duser.timezone=GMT+08 ${JAVA_OPTS:-}"
function Print {
@@ -42,7 +44,7 @@ function RestoreConf {
function StartProc {
Print Start tomcat ...
./bin/catalina.sh run &> /dev/null &
./bin/catalina.sh run &>> $CATALINA_OUT &
PIDS="$PIDS $!"
}