Bug 713162 - Unwanted text 'find: /sys/class/iscsi_session/: No such file or directory' during shutdown
Summary: Unwanted text 'find: /sys/class/iscsi_session/: No such file or directory' du...
Keywords:
Status: CLOSED DUPLICATE of bug 687849
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.6
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-14 14:12 UTC by Charlie Brady
Modified: 2011-06-14 18:11 UTC (History)
41 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 583218
Environment:
Last Closed: 2011-06-14 18:11:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Charlie Brady 2011-06-14 14:12:26 UTC
+++ This bug was initially created as a clone of Bug #583218 +++

--- Additional comment from charlieb-fedora-bugzilla.org.au on 2010-11-26 17:52:29 EST ---

To avoid this:

....
Shutting down system logger:
find: /sys/class/iscsi_session/: No such file or directory
Shutting down interface eth0:
...

You could replace

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

with:

if [ $(ls -d /sys/class/iscsi_session/*/. 2>/dev/null | wc -l) -ge 1 ]; then

Comment 1 Charlie Brady 2011-06-14 14:20:16 UTC
The text isn't bogus, just unwanted. Only appears if there are no iscsi sessions/iscsid is disabled.

Comment 2 Bill Nottingham 2011-06-14 18:11:18 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.