|Summary:||www-servers/tomcat should support systemd|
|Product:||Gentoo Linux||Reporter:||Yichao Zhou <broken.zhou>|
|Component:||[OLD] Java||Assignee:||Java team <java>|
|Severity:||normal||CC:||denistok, drmrboy, email, evert.gentoo, j.koegler, jerome.revillard, juantxorena, marco.dr, nexion.hellborn, oauhix, systemd, thev00d00, yac|
|Package list:||Runtime testing required:||---|
|Bug Depends on:|
|Attachments:||patch against the recent tomcat repository|
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. https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/tomcat6 https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/tomcat7
Comment 2 Pacho Ramos 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: https://build.opensuse.org/package/show/Java:packages/tomcat Best, Jerome
Comment 5 James Le Cuirot 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 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. Changeset: https://github.com/nE0sIghT/vortex-overlay/commit/37ce480585cb1f1d9a499fb92eaa4267fa814cf0 I will create PR at github after more tests