2017-08-20 14:17:43 +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.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Apache Tomcat Web Application Container
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
|
|
|
Environment="NAME=%I"
|
|
|
|
EnvironmentFile=-/etc/sysconfig/tomcat@%I
|
|
|
|
ExecStart=/usr/libexec/tomcat/server start
|
|
|
|
ExecStop=/usr/libexec/tomcat/server stop
|
|
|
|
SuccessExitStatus=143
|
|
|
|
User=tomcat
|
2018-06-13 18:20:45 +00:00
|
|
|
UMask=027
|
2017-08-20 14:17:43 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|