94b7c96
# Systemd unit file for tomcat
94b7c96
# 
94b7c96
# To create clones of this service:
94b7c96
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined 
94b7c96
# before tomcat-sysd is called.
94b7c96
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
94b7c96
# to override tomcat defaults
94b7c96
94b7c96
[Unit]
94b7c96
Description=Apache Tomcat Web Application Container JSVC wrapper
94b7c96
After=syslog.target network.target
94b7c96
94b7c96
[Service]
cee7bee
Type=simple
Ivan Afonichev e0ea773
EnvironmentFile=/etc/tomcat/tomcat.conf
cee7bee
Environment="NAME=" "USE_JSVC=true"
ea624b1
EnvironmentFile=-/etc/sysconfig/tomcat
cee7bee
ExecStart=/usr/libexec/tomcat/server start
cee7bee
ExecStop=/usr/libexec/tomcat/server stop
94b7c96
94b7c96
[Install]
94b7c96
WantedBy=multi-user.target