2011-11-10 21:48:56 +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
|
|
|
|
|
2011-06-06 21:23:05 +00:00
|
|
|
[Unit]
|
2011-11-10 21:48:56 +00:00
|
|
|
Description=Apache Tomcat Web Application Container
|
2011-06-06 21:23:05 +00:00
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2011-11-10 21:48:56 +00:00
|
|
|
ExecStart=/usr/sbin/tomcat-sysd start
|
|
|
|
ExecStop=/usr/sbin/tomcat-sysd stop
|
2011-06-06 21:23:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|