Bug 50130

Summary: Start Tomcat if $CATALINA_PID present and process not found.
Product: Tomcat 6 Reporter: Michael van der Gulik <mikevdg>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: P2    
Version: 6.0.26   
Target Milestone: default   
Hardware: PC   
OS: Linux   
Attachments: Diff containing changes to catalina.sh. Diff does not contain directory info.

Description Michael van der Gulik 2010-10-20 19:57:43 UTC
Created attachment 26193 [details]
Diff containing changes to catalina.sh. Diff does not contain directory info.

Currently, Tomcat will refuse to start if the $CATALINA_PID file is found. If the Tomcat process dies and the $CATALINA_PID is not cleaned up, then the user ends up in the annoying circumstance of not being able to start or stop tomcat using the provided scripts.

This patch will test whether the process the the PID file stores actually exists, and if not then it will start tomcat anyway. Starting tomcat will also replace the PID file with a new version.
Comment 1 Mark Thomas 2010-10-21 07:58:33 UTC

*** This bug has been marked as a duplicate of bug 50084 ***