Blame SOURCES/tomcat-named.service

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