tomcat/tomcat-7.0.service
Michal Vyskocil a1a7392be9 - fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
    background to emulate that
  * remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
    systemd features like User/EnvironmentFile
  * workaround the 143 exit code in Stop phase - return 0 in this case

OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=5
2012-07-17 14:23:06 +00:00

21 lines
444 B
Desktop File

# Systemd unit file for tomcat
#
# You can clone this service by adding a new EnvironmentFile declaring the new
# values for CATALINA_BASE et all
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf
User=tomcat
Group=tomcat
ExecStart=/usr/sbin/tomcat-sysd start
ExecStop=-/usr/sbin/tomcat-sysd stop
[Install]
WantedBy=multi-user.target