summaryrefslogtreecommitdiff
path: root/tomcat-named.service
blob: 16d337a20f8bd95f6bf3497266b1117b54526acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Systemd unit file for tomcat instances.
# 
# To create clones of this service:
# 0. systemctl enable tomcat10.1.54@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/tomcat10.1.54/tomcat10.1.54.conf
Environment="NAME=%i"
EnvironmentFile=-/etc/sysconfig/tomcat10.1.54@%i
ExecStart=/usr/libexec/tomcat10.1.54/server start
ExecStop=/usr/libexec/tomcat10.1.54/server stop
SuccessExitStatus=143
User=tomcat

[Install]
WantedBy=multi-user.target