Skip to content

Instantly share code, notes, and snippets.

@we4tech we4tech/tomcat.conf forked from witscher/tomcat.conf
Last active Aug 29, 2015

Embed
What would you like to do?
Tomcat 7 configuration
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
limit nofile 32000 32000
console output
script
# adapt paths:
export JAVA_HOME=/usr
export CATALINA_HOME=/opt/apache-tomcat-7.0.53
# adapt java options to suit your needs:
export JAVA_OPTS="-Djava.awt.headless=true -Xms512M -Xmx2048M -server -XX:+UseParallelGC"
.$CATALINA_HOME/bin/setenv.sh
sudo -E -u ubuntu $CATALINA_HOME/bin/catalina.sh run
end script
# cleanup temp directory after stop
post-stop script
rm -rf $CATALINA_HOME/temp/*
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.