Blob Blame History Raw
# Thermostat tomcat systemd service file.
#
# See tomcat's default systemd service file for
# details as to how this was created and why.
#
# In a nutshell, this allows us to start tomcat with
# some custom configuration:
#
# 1. Deploys the thermostat webapp in /opt on boot
# 2. Sets relevant JAAS config via 
#    /etc/sysconfig/${SERVICE_NAME}.

[Unit]
Description=Apache Tomcat for Thermostat Container
After=syslog.target network.target

[Service]
Type=forking
# Provides the SERVICE_NAME to tomcat-sysd
EnvironmentFile=__service_file_path__/__service_file_name__
ExecStart=/usr/sbin/tomcat-sysd start
ExecStop=/usr/sbin/tomcat-sysd stop
SuccessExitStatus=143
User=tomcat
Group=tomcat

[Install]
WantedBy=multi-user.target