| # 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