[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.

2010-11-12 Thread gerry skerbitz
Here's my comment included as an attached patch.  What does it take to
actually get this into a release?


** Patch added: Patch to add -p $CATALINA_PID to the initscript tomcat6 file
   
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/632554/+attachment/1731835/+files/tomcat6.init.patch

-- 
tomcat fails to start with: /bin/bash already running.
https://bugs.launchpad.net/bugs/632554
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.

2010-11-03 Thread gerry skerbitz
I'm struck by this bug because I have the tomcat user doing something
else related to tomcat, so it MIGHT actually be logged in.

It strikes me as a bad idea to let a startup script create a file in 
/etc/init.d/.  We should find a better way to clarify that it's actually a 
tomcat instance running rather than just any old login.
catalina.sh isn't making the decision; start-stop-daemon is.

I'm going to work on it.  Ideas are welcome.

-- 
tomcat fails to start with: /bin/bash already running.
https://bugs.launchpad.net/bugs/632554
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.

2010-11-03 Thread gerry skerbitz
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.0 -0500
--- tomcat6 2010-11-03 12:19:04.0 -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
}}}

-- 
tomcat fails to start with: /bin/bash already running.
https://bugs.launchpad.net/bugs/632554
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs