a1a7392be9
* 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
21 lines
444 B
Desktop File
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
|