Bug 683034

Summary: system cannot remove condor lock directory
Product: Red Hat Enterprise MRG Reporter: Martin Kudlej <mkudlej>
Component: condorAssignee: Matthew Farrellee <matt>
Status: CLOSED NOTABUG QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: DevelopmentCC: iboverma, jneedle, matt
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-17 20:30:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Kudlej 2011-03-08 12:01:57 UTC
Description of problem:
There is message during boot:
...
Mounting local filesystems: [ OK ]
Enabling local filesystem quotas: [ OK ]
rm: cannot remove '/var/lock/condor/local': Is a directory
...

Version-Release number of selected component (if applicable):
RHEL 5.6 (There is no such a bug on RHEL6)
condor-7.6.0-0.1.el5

How reproducible:
100%

Steps to Reproduce:
1. install condor
2. reboot system
3. watch boot log
  
Actual results:
There is "rm: cannot remove '/var/lock/condor/local': Is a directory" in boot log.

Expected results:
There will not be "rm: cannot remove '/var/lock/condor/local': Is a directory" in boot log.

Comment 1 Matthew Farrellee 2011-03-17 20:30:48 UTC
This is an issue with initscripts, please file there instead.

$ rpm -qf /etc/rc.d/rc.sysinit
initscripts-8.45.30-3.el5_5.1

...
# Clean up /var.  I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/* ; do
   if [ -d "$afile" ]; then
      case "$afile" in
      */news|*/mon)  ;;
      */sudo)     rm -f $afile/*/* ;;
      */vmware)   rm -rf $afile/*/* ;;
      */samba) rm -rf $afile/*/* ;;
      */screen)   rm -rf $afile/* ;;
      */cvs)      rm -rf $afile/* ;;
      */dovecot)  rm -f $afile/*/* ;;
      */cups)     rm -f $afile/*/* ;;
      */libvirt)  rm -rf $afile/*/* ;;
      *)    rm -f $afile/* ;;
      esac
   else
      rm -f $afile
   fi
done
...