18fb32c606
- Add pidfile as tmpfile - Use systemd for running as unprivileged user - Resolves: rhbz 847751 upgrade path was broken - Resolves: rhbz 850343 use new systemd-rpm macros Merge branch 'f17' of ssh://pkgs.fedoraproject.org/tomcat Conflicts: tomcat.spec
23 lines
536 B
Desktop File
23 lines
536 B
Desktop File
# Systemd unit file for tomcat
|
|
#
|
|
# To create clones of this service:
|
|
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined
|
|
# before tomcat-sysd is called.
|
|
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
|
|
# to override tomcat defaults
|
|
|
|
[Unit]
|
|
Description=Apache Tomcat Web Application Container
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=/usr/sbin/tomcat-sysd start
|
|
ExecStop=/usr/sbin/tomcat-sysd stop
|
|
User=tomcat
|
|
Group=tomcat
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|