2012-01-11 22:58:04 +00:00
|
|
|
# Systemd unit file for tomcat
|
|
|
|
#
|
|
|
|
# To create clones of this service:
|
|
|
|
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined
|
|
|
|
# before tomcat-sysd is called.
|
|
|
|
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
|
|
|
|
# to override tomcat defaults
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Apache Tomcat Web Application Container JSVC wrapper
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
2014-03-25 23:34:21 +00:00
|
|
|
Type=simple
|
2016-03-02 16:40:56 +00:00
|
|
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
2014-03-25 23:34:21 +00:00
|
|
|
Environment="NAME=" "USE_JSVC=true"
|
2016-07-01 17:47:54 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/tomcat
|
2014-03-25 23:34:21 +00:00
|
|
|
ExecStart=/usr/libexec/tomcat/server start
|
|
|
|
ExecStop=/usr/libexec/tomcat/server stop
|
2012-01-11 22:58:04 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|