Created
July 27, 2016 08:39
-
-
Save Niemi/9d64b65cd73561d911689b0c560d47ee to your computer and use it in GitHub Desktop.
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
[Unit] | |
Description=Apache Tomcat Web Application Container | |
After=network.target | |
[Service] | |
Type=forking | |
Environment=JAVA_HOME=/usr/lib/jvm/latest/jre | |
Environment=CATALINA_PID=/opt/tomcat/work/tomcat.pid | |
Environment=CATALINA_HOME=/opt/tomcat | |
Environment=CATALINA_BASE=/opt/tomcat | |
Environment='JAVA_OPTS=-server -d64 -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Xms1536m -Xmx1536m' | |
ExecStart=/opt/tomcat/bin/startup.sh | |
ExecStop=/opt/tomcat/bin/catalina.sh -force 4 stop | |
User=tomcat | |
Group=tomcat | |
RestartSec=10 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment