Created
September 14, 2015 16:31
-
-
Save dantheman213/f8cbb6a2d00b2766a2d6 to your computer and use it in GitHub Desktop.
Tomcat 8 upstart configuration file
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
description "Tomcat Server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
setuid tomcat | |
setgid tomcat | |
env JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre | |
env CATALINA_HOME=/opt/tomcat | |
# Modify these options as needed | |
env JAVA_OPTS="-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom" | |
env CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" | |
exec $CATALINA_HOME/bin/catalina.sh 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