Red Hat Bugzilla – Bug 492994
rc.sysinit does not clean /var/run/dovecot/master.pid at startup causing it to fail
Last modified: 2011-10-05 15:25:16 EDT
rc.sysinit is cleaning up /var/run every startup, but the file /var/run/dovecot/master.pid is not removed. Dovecot then does not start.
Please fix rc.sysinit to not only delete /var/run/dovecot/*/* but /var/run/dovecot/master.pid too. This directory should be cleaned up even dovecot's check for staled PID file is broken.
I find it hard to believe this has been broken this way since 2004, and no one has filed a bug before now. Is that really the case?
I had to manually clean up /var/run/dovecot/* after unexpected server crash. I wonder why /var/run/dovecot/*/* files are deleted by rc.sysinit but /var/run/dovecot/* are not.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
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.
This "fix" introduced a regression. Now rc.sysinit shows an error message:
rm: Cannot remove '/var/run/dovecot/login': is a directory
Note that /var/run/dovecot/login is owned by the dovecot rpm, so shouldn't be removed.