ddfc98c
# Systemd unit file for tomcat
ddfc98c
# 
ddfc98c
# To create clones of this service:
ddfc98c
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined 
ddfc98c
# before tomcat-sysd is called.
ddfc98c
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
ddfc98c
# to override tomcat defaults
ddfc98c
ca271e5
[Unit]
ddfc98c
Description=Apache Tomcat Web Application Container
ca271e5
After=syslog.target network.target
ca271e5
ca271e5
[Service]
ca271e5
Type=forking
ddfc98c
ExecStart=/usr/sbin/tomcat-sysd start
ddfc98c
ExecStop=/usr/sbin/tomcat-sysd stop
b2b5f77
SuccessExitStatus=143
18fb32c
User=tomcat
18fb32c
Group=tomcat
18fb32c
ca271e5
ca271e5
[Install]
ca271e5
WantedBy=multi-user.target