Blame SOURCES/tomcat-named.service

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