Using sys-apps/baselayout-2.0.0_alpha1, when I start or stop any service, I get this error: /etc/init.d/tomcat-6: line 48: `start-helper': not a valid identifier I'm using www-servers/tomcat-6.0.10-r2 I hope I'm assigning this bug to the right people - I wasn't sure if I should assign to baselayout or ebuilds. Thanks!
- 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. ***