0543334466
This keeps the default tomcat.service unchanged (except for internals), and adds template for tomcat@name.service services. In the new world, if you need an instance, you'll create a directory /var/lib/tomcats/name, create {conf temp work webapps} in it, and then systemctl enable tomcat@name.service. This commit doesn't contain anything related to jsvc.
19 lines
391 B
Desktop File
19 lines
391 B
Desktop File
[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
|
|
Group=tomcat
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|