You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
590 B
25 lines
590 B
# 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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|