Skip to content

Commit

Permalink
tomcat start file sample
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioleal committed Jul 3, 2016
1 parent 4529f9d commit b370d56
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tomcat.conf
@@ -0,0 +1,23 @@
description "Tomcat Server"

start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5

setuid tomcat
setgid tomcat

env JAVA_HOME=/lib/jvm/java-8-oracle/jre/bin/java
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

0 comments on commit b370d56

Please sign in to comment.