Description of problem: rm command in rc.sysinit failed since "-r" option is missing. Error Message: "rm: cannot remove directory `/var/run/dovecot/login/': Is a directory" initscripts-8.45.33/rc.d/rc.sysinit: 849 */dovecot) rm -f $afile/* $afile/*/* ;; This seems a regression due to BZ#492994 fix. Version-Release number of selected component (if applicable): RHEL5.6, initscripts-8.45.33-1.el5 How reproducible: Always Steps to Reproduce: 1. Install dovecot, and start dovecot service 2. Redirect the error message to a file. e.g. Edit /etc/rc.sysinit: */dovecot) rm -f $afile/* $afile/*/* > /tmp/log 2>&1 ;; 3. Reboot the system 4. Check /tmp/log for the error message Actual results: Cannot remove directories Expected results: Can remove directories Additional info: A patch file is also attached.
Created attachment 480632 [details] rc.sysinit_rm.patch
CC'ing dovecot maintainer.
Correct, dovecot creates/uses directory under /var/run/dovecot. a)you can remove it and dovecot will recreate it on start (dovecot_t is not allowed to create directory under dovecot_var_run_t yet, so selinux change is required too) b)ignore error and clear only content in /var/run/dovecot/ (contains master.pid) and not subdirectory
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.
Created attachment 528613 [details] Potential patch This patch would just drop the error messages, which seems the simplest fix.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0312.html