Hide Forgot
Description of problem: - When shutting down or rebooting, if /sys/class/iscsi_session/ does not exist, /etc/rc.d/init.d/network shows an error Version-Release number of selected component (if applicable): initscripts-8.45.33-1.el5.x86_64 Steps to Reproduce: 1. Set up a machine without iSCSI 2. Log the console output 3. # shutdown -h now Actual results: """ Shutting down system logger: [ OK ] find: /sys/class/iscsi_session/: No such file or directory Shutting down interface eth0: [ OK ] """ Expected results: - No error messages. Additional info: - Can be fixed with: --- etc/rc.d/init.d/network.orig 2011-04-07 09:43:38.000000000 +0100 +++ etc/rc.d/init.d/network 2011-04-07 09:43:57.000000000 +0100 @@ -202,3 +202,3 @@ if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then - if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then + if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d 2> /dev/null | wc -l` -ge 1 ]; then exit 1 Visitors, please note that: - This is a benign error message, it can be discarded. - It will only appear in runlevel 0, 1, 6, hence not during a simple "service network restart".
*** This bug has been marked as a duplicate of bug 687849 ***