Bug 699810

Summary: Convert tomcat to use systemd
Product: [Fedora] Fedora Reporter: Dmitri Pal <dpal>
Component: tomcat6Assignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dcallagh, dknox, dwalluck, lzap, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-14 14:38:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dmitri Pal 2011-04-26 16:30:36 UTC
In F15 a new way to start services was introduced.
This is the bug to convert tomcat 6 to use native systemd configuration files and scripts instead of init.d.

Comment 1 Marcela Mašláňová 2011-04-27 06:22:09 UTC
Moving systemd service RFEs to rawhide.

At this point, it is not appropriate in the Fedora 15 cycle to add these.
Furthermore, at this point, we are still finalizing the packaging guidelines to
handle SysV -> systemd upgrades.

We therefore request:
- wait until there are packaging guidelines (this will be announced on the
devel list). This ensures that upgrades will work smoothly and we/you won't
have to do multiple sets of changes.
- work on these sorts of changes for Fedora 16 where necessary, not Fedora 15,
as we're trying to fix things for release.
- do *not* change a service from SysV to systemd in an existing release (such
as Fedora 15), as this is the sort of behavior change that goes against our
update policy, documented as https://fedoraproject.org/wiki/Updates_Policy

Comment 2 David Knox 2011-05-16 16:11:26 UTC
Changed version to rawhide given c#1

Comment 3 Alexander Kurtakov 2011-07-04 15:02:37 UTC
This has been done to tomcat package (v7). See http://pkgs.fedoraproject.org/gitweb/?p=tomcat.git;a=commitdiff;h=ca271e5d851bea547f2020de374e685531303f18

Comment 4 Lukas Zapletal 2012-07-24 15:32:04 UTC
Guys, there is an issue with tomcat and systemd. Can you please make sure this script works (all service commands returns 0)?

#!/bin/bash
function testservice() {
        echo service $1 $2
        /sbin/service $1 $2
        echo returns: $?
}
testservice tomcat6 start
testservice tomcat6 status
testservice tomcat6 stop
testservice tomcat6 status

All commands are supposed to return zero values.

The major issue is when calling start and stop quickly after each other, the stop call will likely fail because tomcat's service port was not started yet (it uses HTTP call to stop the instance). It's quite annoying bug that has been there for years, if it could be solved with systemd it would be nice.

https://bugzilla.redhat.com/show_bug.cgi?id=789288

Comment 5 Mikolaj Izdebski 2013-03-14 14:38:38 UTC
Package tomcat6 has been deprecated in Fedora 19 and later.
I am closing this bug as WONTFIX.

For more information why tomcat6 was deprecated see:
  http://bugzilla.redhat.com/918010
  http://lists.fedoraproject.org/pipermail/devel/2013-March/179847.html
  http://fedorahosted.org/fesco/ticket/1094

Comment 6 David Knox 2013-03-20 18:34:21 UTC
The state change to WONTFIX was a mistake. Systemd is in the current release.