/[smeserver]/rpms/initscripts/sme8/initscripts-8.45.33-bug6400.patch
ViewVC logotype

Annotation of /rpms/initscripts/sme8/initscripts-8.45.33-bug6400.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 14 15:16:13 2011 UTC (13 years, 3 months ago) by snetram
Branch: MAIN
CVS Tags: initscripts-8_45_33-1_el5_sme_1
* Tue Jun 14 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 8.45.33-2.el5.sme
- Fix iSCSI related log noise on system shutdown [SME: 6400]

1 snetram 1.1 diff -up initscripts-8.45.33/rc.d/init.d/network.bug6400 initscripts-8.45.33/rc.d/init.d/network
2     --- initscripts-8.45.33/rc.d/init.d/network.bug6400 2010-10-13 15:36:48.000000000 +0200
3     +++ initscripts-8.45.33/rc.d/init.d/network 2011-06-12 09:53:24.000000000 +0200
4     @@ -200,7 +200,7 @@ case "$1" in
5     # If this is a final shutdown/halt and there is an iSCSI session,
6     # do not stop the service.
7     if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
8     - if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then
9     + if [ $(ls -d /sys/class/iscsi_session/*/. 2>/dev/null | wc -l) -ge 1 ]; then
10     exit 1
11     fi
12     fi

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed