-
-
Save dstarh/a76eba3a3673d9c49b4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapt paths: | |
env JAVA_HOME=/usr/lib/jvm/jdk1.7.0 | |
env CATALINA_HOME=/usr/local/apache-tomcat-7.0.39 | |
env TOMCAT_HOME=/usr/local/apache-tomcat-7.0.39 | |
env TOMCAT_USER=ubuntu | |
# adapt java options to suit your needs: | |
env CATALINA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=999m -Dfile.encoding=UTF8" | |
# Manually specify CATALINA_OUT, so we can redirect ourselves | |
env CATALINA_OUT=$CATALINA_HOME/logs/catalina.out | |
# Stop upstart from handling stdout/stderr & redirect to the log file ourselves | |
console none | |
exec $CATALINA_HOME/bin/catalina.sh run >> "$CATALINA_OUT" 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment