Bug 50130 - Start Tomcat if $CATALINA_PID present and process not found.
Summary: Start Tomcat if $CATALINA_PID present and process not found.
Status: RESOLVED DUPLICATE of bug 50084
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.26
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-20 19:57 UTC by Michael van der Gulik
Modified: 2010-10-21 07:58 UTC (History)
0 users



Attachments
Diff containing changes to catalina.sh. Diff does not contain directory info. (723 bytes, patch)
2010-10-20 19:57 UTC, Michael van der Gulik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***