[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH 1/5] rgmanager: Fix orainstance.sh error checking



Pull in the fixed error checking that was added to oracledb.sh as a fix for
rhbz#471066.

Resolves: rhbz#723819

Signed-off-by: Ryan McCabe <rmccabe redhat com>
---
 rgmanager/src/resources/orainstance.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rgmanager/src/resources/orainstance.sh b/rgmanager/src/resources/orainstance.sh
index 6f2ff15..a9f690d 100755
--- a/rgmanager/src/resources/orainstance.sh
+++ b/rgmanager/src/resources/orainstance.sh
@@ -105,7 +105,7 @@ start_db() {
 
 	# If we see:
 	# ORA-.....: failure, we failed
-	grep -q "failure" $logfile
+	grep -q "^ORA-" $logfile
 	rv=$?
 
     rm -f $logfile
@@ -155,7 +155,7 @@ stop_db() {
 		return 1
 	fi
 
-	grep -q failure $logfile
+	grep -q "^ORA-" $logfile
     rv=$?
     rm -f $logfile
 
-- 
1.7.10.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]