Bug 492994 - rc.sysinit does not clean /var/run/dovecot/master.pid at startup causing it to fail
Summary: rc.sysinit does not clean /var/run/dovecot/master.pid at startup causing it t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-31 06:19 UTC by Milan Kerslager
Modified: 2011-10-05 19:25 UTC (History)
4 users (show)

Fixed In Version: initscripts-8.45.32-1.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-13 23:05:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0075 0 normal SHIPPED_LIVE initscripts bug fix update 2011-01-12 17:22:01 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.