https://issues.apache.org/bugzilla/show_bug.cgi?id=54013
Priority: P2
Bug ID: 54013
Assignee: [email protected]
Summary: Catalina.sh force kill to wait till process exits
completely
Severity: enhancement
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: All
Status: NEW
Version: trunk
Component: Catalina
Product: Tomcat 7
Created attachment 29490
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29490&action=edit
Patch for changes to catalina.sh to wait till process dies completely
In Tomcat 7, when the container is stopped using catalina.sh stop force, the
catalina.sh script uses the CATALINA_PID environment variable to send a kill -9
to the pid of the currently running container process. However, this doesn't
kill the process instantaneously - say for e.g. when the process is in the
middle of a system call or is in the UNINTERRUPTIBLE state. In this case, why
cant we use the kill -0 ``cat "$CATALINA_PID"`` >/dev/null 2>&1 trick of
checking the liveness of the process before removing the PID file that is used
with stop in the non-force mode? This would ensure that the stop force is
somewhat synchronous. Just wanted to know if there are good reasons why this
was not done. If we don't see any issue with this, I am attaching a patch (to
catalina.sh) that is intended to do this. Let me know if there are any
questions.
Thanks in advance!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]