Blame SOURCES/scl-tomcat-systemd.service

3aaed5
# Thermostat tomcat systemd service file.
3aaed5
#
3aaed5
# See tomcat's default systemd service file for
3aaed5
# details as to how this was created and why.
3aaed5
#
3aaed5
# In a nutshell, this allows us to start tomcat with
3aaed5
# some custom configuration:
3aaed5
#
3aaed5
# 1. Deploys the thermostat webapp in /opt on boot
3aaed5
# 2. Sets relevant JAAS config via 
3aaed5
#    /etc/sysconfig/${SERVICE_NAME}.
3aaed5
3aaed5
[Unit]
3aaed5
Description=Apache Tomcat for Thermostat Container
3aaed5
After=syslog.target network.target
3aaed5
3aaed5
[Service]
3aaed5
Type=forking
3aaed5
# Provides the SERVICE_NAME to tomcat-sysd
3aaed5
EnvironmentFile=__service_file_path__/__service_file_name__
3aaed5
ExecStart=/usr/sbin/tomcat-sysd start
3aaed5
ExecStop=/usr/sbin/tomcat-sysd stop
3aaed5
SuccessExitStatus=143
3aaed5
User=tomcat
3aaed5
Group=tomcat
3aaed5
3aaed5
[Install]
3aaed5
WantedBy=multi-user.target