Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 492994

Summary: rc.sysinit does not clean /var/run/dovecot/master.pid at startup causing it to fail
Product: Red Hat Enterprise Linux 5 Reporter: Milan Kerslager <milan.kerslager>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: azelinka, charlieb-fedora-bugzilla, harald, notting
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: initscripts-8.45.32-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:05:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Kerslager 2009-03-31 06:19:22 UTC
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.

Comment 1 Bill Nottingham 2009-03-31 15:15:09 UTC
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?

Comment 2 Milan Kerslager 2009-09-14 05:49:01 UTC
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.

Comment 3 RHEL Program Management 2010-06-04 20:39:28 UTC
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
release.

Comment 7 errata-xmlrpc 2011-01-13 23:05:04 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-0075.html

Comment 8 Charlie Brady 2011-10-05 19:23:51 UTC
This "fix" introduced a regression. Now rc.sysinit shows an error message:

rm: Cannot remove '/var/run/dovecot/login': is a directory

Comment 9 Charlie Brady 2011-10-05 19:25:16 UTC
Note that /var/run/dovecot/login is owned by the dovecot rpm, so shouldn't be removed.