Comment 8 for bug 632554

Revision history for this message
Bruce Edge (bruce-edge) wrote : Re: [Bug 632554] Re: tomcat fails to start with: /bin/bash already running.

On Wed, Nov 3, 2010 at 10:26 AM, gerry skerbitz
<email address hidden>wrote:

> The problem is fixed if we add `-p "$CATALINA_PID"` to the
> start-stop-daemon line in catalina_sh(). Isn't that something we should be
> able to rely on?
> {{{
> *** tomcat6~ 2010-10-11 13:21:52.000000000 -0500
> --- tomcat6 2010-11-03 12:19:04.000000000 -0500
> ***************
> *** 152,154 ****
> start-stop-daemon --start -b -u "$TOMCAT6_USER" -g "$TOMCAT6_GROUP"
> \
> ! -c "$TOMCAT6_USER" -d "$CATALINA_TMPDIR" \
> -x /bin/bash -- -c "$AUTHBIND_COMMAND $TOMCAT_SH"
> --- 152,154 ----
> start-stop-daemon --start -b -u "$TOMCAT6_USER" -g "$TOMCAT6_GROUP"
> \
> ! -c "$TOMCAT6_USER" -d "$CATALINA_TMPDIR" -p "$CATALINA_PID"
> \
> -x /bin/bash -- -c "$AUTHBIND_COMMAND $TOMCAT_SH"
> }}}
>
>
Seems like a perfectly reasonable fix. I have a hard time understanding why
it wasn't done this way at first.

> --
> tomcat fails to start with: /bin/bash already running.
> https://bugs.launchpad.net/bugs/632554
> You received this bug notification because you are a direct subscriber
> of the bug.
>