Created
December 15, 2018 13:15
-
-
Save artemrogov/07319825ed3922c82403f8101b131365 to your computer and use it in GitHub Desktop.
systemd для tomcat сервера. Подробности в док. по ubuntu OS см. тут https://help.ubuntu.ru/wiki/systemd
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
[Unit] | |
Description=Tomcat 8.53 servlet container | |
After=network.target | |
[Service] | |
Type=forking | |
User=tomcat | |
Group=tomcat | |
Environment="JAVA_HOME=/usr/lib/jvm/default-java" | |
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom -Djava.awt.headless=true" | |
Environment="CATALINA_BASE=/opt/tomcat/apache-tomcat-8.5.35" | |
Environment="CATALINA_HOME=/opt/tomcat/apache-tomcat-8.5.35" | |
Environment="CATALINA_PID=/opt/tomcat/apache-tomcat-8.5.35/temp/tomcat.pid" | |
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC" | |
ExecStart=/opt/tomcat/apache-tomcat-8.5.35/bin/startup.sh | |
ExecStop=/opt/tomcat/apache-tomcat-8.5.35/bin/shutdown.sh | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment