b6a0d1
# Systemd unit file for tomcat instances.
b6a0d1
# 
b6a0d1
# To create clones of this service:
b6a0d1
# 0. systemctl enable tomcat@name.service
b6a0d1
# 1. create catalina.base directory structure in
b6a0d1
#    /var/lib/tomcats/name
b6a0d1
# 2. profit.
b6a0d1
b6a0d1
[Unit]
b6a0d1
Description=Apache Tomcat Web Application Container
b6a0d1
After=syslog.target network.target
b6a0d1
b6a0d1
[Service]
b6a0d1
Type=simple
b6a0d1
EnvironmentFile=/etc/tomcat/tomcat.conf
b6a0d1
Environment="NAME=%i"
b6a0d1
EnvironmentFile=-/etc/sysconfig/tomcat@%i
b6a0d1
ExecStart=/usr/libexec/tomcat/server start
b6a0d1
ExecStop=/usr/libexec/tomcat/server stop
b6a0d1
SuccessExitStatus=143
b6a0d1
User=tomcat
b6a0d1
b6a0d1
[Install]
b6a0d1
WantedBy=multi-user.target