Red Hat Bugzilla – Bug 474444
Zero-length pid files cause resource start failures
Last modified: 2009-09-02 07:05:22 EDT
Created attachment 325599 [details]
config-utils.sh has check_pid_file() which is a little too zealous in its checks.
For example, if a PID file exists but is of zero length, a start for a service might fail.
This patch unlinks a zero-length PID file, since it's not useful data. I don't know whether or not it's correct to do this generally.
This issue was first reported in bug 462910 .
Created attachment 329501 [details]
Patch follows the idea of preliminary patch. Test & remove were moved to better section as there is a bug in proposed patch (-z will test for length of string; not length of filename).
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.