2012-06-16 07:18:01 +02:00
|
|
|
# Systemd unit file for tomcat
|
2012-07-17 16:23:06 +02:00
|
|
|
#
|
2012-07-19 10:58:29 +02:00
|
|
|
# You can clone this service by:
|
|
|
|
# 1.) Add a new EnvironmentFile declaring the new values for CATALINA_BASE
|
|
|
|
# and others
|
2012-06-16 07:18:01 +02:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Apache Tomcat Web Application Container
|
2012-07-19 10:58:29 +02:00
|
|
|
After=network.target
|
2012-06-16 07:18:01 +02:00
|
|
|
|
|
|
|
[Service]
|
2012-07-17 16:23:06 +02:00
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
|
|
|
User=tomcat
|
|
|
|
Group=tomcat
|
2012-06-16 07:18:01 +02:00
|
|
|
ExecStart=/usr/sbin/tomcat-sysd start
|
2012-07-19 10:58:29 +02:00
|
|
|
ExecStop=/usr/sbin/tomcat-sysd stop
|
2013-04-19 13:53:03 +02:00
|
|
|
StandardOutput=syslog
|
|
|
|
SyslogIdentifier=%n
|
|
|
|
SyslogFacility=daemon
|
2013-11-04 15:49:19 +01:00
|
|
|
SuccessExitStatus=143
|
2012-06-16 07:18:01 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|