39188a6b30
- don't use and recommends logrotate OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=23
26 lines
694 B
Desktop File
26 lines
694 B
Desktop File
# Systemd unit file for tomcat
|
|
#
|
|
# You can clone this service by:
|
|
# 1.) Add a new EnvironmentFile declaring the new values for CATALINA_BASE
|
|
# and others
|
|
# 2.) Define new Environment=JSVC_PIDFILE=/var/run/tomcat-foo.pid if you want
|
|
# to run more than one service
|
|
|
|
[Unit]
|
|
Description=Apache Tomcat Web Application Container JSVC wrapper
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
|
#PIDFILE is needed for jsvc
|
|
#Environment=JSVC_PIDFILE=/var/run/tomcat-jsvc.pid
|
|
ExecStart=/usr/sbin/tomcat-jsvc-sysd start
|
|
ExecStop=/usr/sbin/tomcat-jsvc-sysd stop
|
|
StandardOutput=syslog
|
|
SyslogIdentifier=%n
|
|
SyslogFacility=daemon
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|