Bug 35396 - /etc/rc.d/rc.sysinit complains on directories in /var/run/mon
Summary: /etc/rc.d/rc.sysinit complains on directories in /var/run/mon
Keywords:
Status: CLOSED DUPLICATE of bug 26294
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-04-09 23:26 UTC by Jim Wright
Modified: 2014-03-17 02:20 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-04-09 23:26:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Jim Wright 2001-04-09 23:26:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-14jrw i686)


I just used up2date to bring my 7.0 system in line.  I don't know what was
there before, but now the directory /var/run/mon contains two
subdirectories.  In /etc/rc.d/rc.sysinit, it has code to clean everything
out of /var/run, along with special case code to deal with /var/run/news
and /var/run/sudo.  When booting, I get two lines of error message about rm
not being able to delete the directories /var/run/mon/log.d and
/var/run/mon/state.d.

The bug is that /etc/rc.d/rc.sysinit assumes that directories in /var/run
will not have any subdirectories.


Reproducible: Always
Steps to Reproduce:
1. reboot	

Actual Results:  error message during boot

Expected Results:  nice clean boot

% rpm -qf /etc/rc.d/rc.sysinit /var/run/mon/log.d
initscripts-5.49-1
mon-0.38.18-10

section of /etc/rc.d/rc.sysinit:

# 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
      [ "`basename $afile`" != "news" -a "`basename $afile`" != "sudo" ] &&
rm -f $afile/*
   else
      rm -f $afile
   fi
done

Comment 1 Bill Nottingham 2001-04-10 01:46:08 UTC

*** This bug has been marked as a duplicate of 26294 ***


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