This commit is contained in:
IDEZ Ugo
2021-12-16 17:40:30 +01:00
parent f4fc62bf03
commit bdf870d1d7
14 changed files with 274 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Tomcat
After=syslog.target network.target
[Service]
Type=forking
User=tomcat
Group=tomcat
Environment=JAVA_HOME={{ JAVA_HOME }}
Environment='JAVA_OPTS=-Djava.awt.headless=true'
Environment=CATALINA_HOME=/usr/share/tomcat/apache-tomcat-10.0.13
Environment=CATALINA_BASE=/usr/share/tomcat/apache-tomcat-10.0.13
Environment=CATALINA_PID=/usr/share/tomcat/apache-tomcat-10.0.13/temp/tomcat.pid
ExecStart=catalina.sh start
ExecStop=catalina.sh stop
[Install]
WantedBy=multi-user.target