#!/bin/sh
# Final launcher step after configuration, JDBC and certificates are ready.
# Requires a supervised exporter and a chart with compatible drain and stop hooks.
set -eu
: "${CATALINA_HOME:?set Tomcat home}"
: "${CATALINA_BASE:?set the writable Tomcat base}"
test -x "$CATALINA_HOME/bin/catalina.sh"
test -d "$CATALINA_BASE/conf"
exec "$CATALINA_HOME/bin/catalina.sh" run
