Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485000 - www-servers/tomcat should support systemd
Summary: www-servers/tomcat should support systemd
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal with 4 votes (vote)
Assignee: Java team
Keywords: NeedPatch
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
Reported: 2013-09-15 12:47 UTC by Yichao Zhou
Modified: 2018-02-05 20:51 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---

patch against the recent tomcat repository (tomcat.patch,23.88 KB, patch)
2016-03-31 18:08 UTC, Jens Koegler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yichao Zhou 2013-09-15 12:47:20 UTC
www-servers/tomcat does not support systemd.
Comment 1 Yichao Zhou 2013-09-17 10:21:19 UTC
Again, the archlinux's tomcat systemd file can be used as reference.

But obvious, it lacks mult-instance support.
Comment 2 Pacho Ramos gentoo-dev 2013-09-17 19:30:22 UTC
I can neither see that support in Fedora, if you can provide some example services files supporting that would be nice
Comment 3 Jérôme Revillard 2013-10-18 15:04:42 UTC
I just updated to systemd and discovered the problem... I hope that it will be solved quickly.

Thanks in advance.
Comment 4 Jérôme Revillard 2013-11-12 11:45:59 UTC
If you are interested,  OpenSuse has the multi instance support:

Comment 5 James Le Cuirot gentoo-dev 2015-03-11 20:07:53 UTC
Be careful because the way to do this has changed recently. Fedora 21 has a different method to CentOS 7.
Comment 6 Alessandro Molari 2015-08-24 12:48:35 UTC
Is there any progress ?
Comment 7 James Le Cuirot gentoo-dev 2015-08-24 12:51:25 UTC
We don't have the resources to put towards this at the moment but I'd be interested in contributions. Something that gels the latest Fedora approach with our existing multi-instance script would be good.
Comment 8 William L. Thomson Jr. 2015-12-09 20:23:29 UTC
The existing multi-instance support is crap and it needs to be redone entirely. It creates a mess and way to many installed files that are not under the control of portage. Including the all important init script. Such that updates to the init file never effect the system as its only installed by the instance manger not by portage. Needs to be completely redone. Till that happens I do not see systemd support being feasible. Even once the instance manager is redone, there is a lack of man power, and not sure many are running systemd that are familiar with Tomcat. I used to maintain Tomcat and do not use systemd and will hopefully never.
Comment 9 Jens Koegler 2016-03-31 18:08:49 UTC
Created attachment 429386 [details, diff]
patch against the recent tomcat repository

This patch is my (working) suggestion to support systemd. It contains sligtly modified ebuilds, two new files, a systemd unit file and a helper script installed in /usr/bin to start a tomcat instance. This script is based on the init.d script and supports the environment variables under /etc/conf.d/tomcat*. Last but not least there is an new modified tomcat-instance-manager script.
Comment 10 nE0sIghT 2016-04-25 21:27:46 UTC
I added systemd with proper (imho, RHEL like) multi instance support to vortex overlay.

I will create PR at github after more tests
Comment 11 nE0sIghT 2016-04-26 19:58:22 UTC