2013-06-11 17:56:51 +00:00
|
|
|
# Systemd unit file for tomcat instances.
|
|
|
|
#
|
|
|
|
# To create clones of this service:
|
|
|
|
# 0. systemctl enable tomcat@name.service
|
|
|
|
# 1. create catalina.base directory structure in
|
|
|
|
# /var/lib/tomcats/name
|
|
|
|
# 2. profit.
|
|
|
|
|
2013-06-11 17:35:03 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Apache Tomcat Web Application Container
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2016-03-02 16:40:56 +00:00
|
|
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
2019-09-26 18:28:51 +00:00
|
|
|
Environment="NAME=%i"
|
|
|
|
EnvironmentFile=-/etc/sysconfig/tomcat@%i
|
2013-06-11 17:35:03 +00:00
|
|
|
ExecStart=/usr/libexec/tomcat/server start
|
|
|
|
ExecStop=/usr/libexec/tomcat/server stop
|
|
|
|
SuccessExitStatus=143
|
|
|
|
User=tomcat
|
|
|
|
Group=tomcat
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|