Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn limit 10 5
setuid tomcat
setgid tomcat
env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
env CATALINA_HOME=/vagrant
# Modify these options as needed
env JAVA_OPTS="-Djava.awt.headless=true"
env CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
exec $CATALINA_HOME/bin/ run
# 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.