Bug 690407 - Broken iscsi startscript in RHEL5.6
Summary: Broken iscsi startscript in RHEL5.6
Keywords:
Status: CLOSED DUPLICATE of bug 687849
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-24 09:16 UTC by ES-Devel
Modified: 2011-03-24 15:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-24 15:19:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description ES-Devel 2011-03-24 09:16:41 UTC
Description of problem:

In RHEL5.6 the following code was added to /etc/rc.d/init.d/network

   if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then
      exit 1

In the case where there is no iscsi running, this causes the error message

   find: /sys/class/iscsi_session/: No such file or directory

I guess there should either be a 2>/dev/null, or a test first to see if the
directory exists.


Version-Release number of selected component (if applicable):

initscripts-8.45.33-1

Comment 3 Bill Nottingham 2011-03-24 15:19:58 UTC

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


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