Summary: | tomcat init script is not POSIX compliant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Craig Andrews <candrews> |
Component: | [OLD] baselayout | Assignee: | William L. Thomson Jr. (RETIRED) <wltjr> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, flameeyes, hollow |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
tomcat 6 init script patch for Baselayout 2
tomcat 6 init script patch for Baselayout 2 [revised] tomcat 5.5 init script patch for Baselayout 2 |
Description
Craig Andrews
2007-04-13 18:17:27 UTC
- is not valid in POSIX shell function names. I will address closer to the time of baselayout-2 being unmasked. And/or when I have a need to do a revision bump for other reasons. Fixed in tomcat-6.0.10-r3, can't address 5.5.23 since it's stable, although the change is minor and quite moot. Will address that one when baselayout-2 is stabilized or etc. Created attachment 118235 [details]
tomcat 6 init script patch for Baselayout 2
Unfortunately that change is not enough to get tomcat 6 to work with Baselayout2 on Gentoo/FreeBSD.
The attached patch also changes [[ in [ and == in =, so that it works with BSD's sh (and probably dash).
It also adds a --name java instead of --quiet, otherwise the stop action will silently fail, and report a success.
Created attachment 118236 [details, diff]
tomcat 6 init script patch for Baselayout 2 [revised]
Actually, this patch is a bit better, it also changes the pidfile name to be tomcat-6.pid rather than just tomcat.pid, otherwise starting it together with tomcat-5.5 will fool up s-s-d.
Created attachment 118237 [details]
tomcat 5.5 init script patch for Baselayout 2
Same patch for 5.5 with also the start-helper vs start_helper change.
Although 5 is stable, Baselayout 2 is the only one usable on Gentoo/FreeBSD, so to have Tomcat 5.5 on it, this is needed.
(In reply to comment #4) > > Unfortunately that change is not enough to get tomcat 6 to work with > Baselayout2 on Gentoo/FreeBSD. > Reopening. Ok, address remaining non-posix compliant issue. We should be good to go now :) Closing bug as it should be fixed now. Please comment or re-open if problem remains. *** Bug 180207 has been marked as a duplicate of this bug. *** |