...
This commit is contained in:
parent
0543334466
commit
935d478a7b
@ -1,19 +1,19 @@
|
|||||||
# Systemd unit file for tomcat
|
# Systemd unit file for default tomcat
|
||||||
#
|
#
|
||||||
# To create clones of this service:
|
# To create clones of this service:
|
||||||
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined
|
# DO NOTHING, use tomcat@.service instead.
|
||||||
# before tomcat-sysd is called.
|
|
||||||
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
|
|
||||||
# to override tomcat defaults
|
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Apache Tomcat Web Application Container
|
Description=Apache Tomcat Web Application Container
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
ExecStart=/usr/sbin/tomcat-sysd start
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
||||||
ExecStop=/usr/sbin/tomcat-sysd stop
|
Environment="NAME="
|
||||||
|
EnvironmentFile=-/etc/sysconfig/tomcat
|
||||||
|
ExecStart=/usr/libexec/tomcat/server start
|
||||||
|
ExecStop=/usr/libexec/tomcat/server stop
|
||||||
SuccessExitStatus=143
|
SuccessExitStatus=143
|
||||||
User=tomcat
|
User=tomcat
|
||||||
Group=tomcat
|
Group=tomcat
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
# 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]
|
[Unit]
|
||||||
Description=Apache Tomcat Web Application Container
|
Description=Apache Tomcat Web Application Container
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
Loading…
Reference in New Issue
Block a user