-
-
Save we4tech/9931679 to your computer and use it in GitHub Desktop.
Tomcat 7 configuration
This file contains hidden or 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 | |
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