Bug 683034 - system cannot remove condor lock directory
Summary: system cannot remove condor lock directory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor
Version: Development
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: 2.0
: ---
Assignee: Matthew Farrellee
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-08 12:01 UTC by Martin Kudlej
Modified: 2011-03-17 20:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-17 20:30:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

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
...


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