Bug 55986 - catalina.sh -force may falsely report "Tomcat has not been killed completely yet"
catalina.sh -force may falsely report "Tomcat has not been killed completely ...
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
trunk
All Linux
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-01-11 11:51 UTC by jess
Modified: 2014-01-13 15:43 UTC (History)
0 users



Attachments
catalina.sh patch (718 bytes, text/plain)
2014-01-11 11:51 UTC, jess
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jess 2014-01-11 11:51:50 UTC
Created attachment 31197 [details]
catalina.sh patch

When catalina.sh -force is called and rm -f "$CATALINA_PID" succeeds, KILL_SLEEP_INTERVAL is not set to zero and the warning "Tomcat has not been killed completely yet" is falsely reported.

This may be fixed by moving the KILL_SLEEP_INTERVAL=0 statement out below the "rm -f "$CATALINA_PID" error handling block. See attached patch.
Comment 1 Mark Thomas 2014-01-13 15:43:54 UTC
Thanks for the report and the patch.

I have applied the patch (with some additional tweaks) to 8.0.x for 8.0.0 onwards and to 7.0.x for 7.0.51 onwards.

Your contribution has been recognized in both the commit log and the changelog.

Thanks again.