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