public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: Check for all ORA- errors on start/stop
@ 2009-05-21 14:29 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-05-21 14:29 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=210681e5612703a5b9f3e578db31e234cf58cb6d
Commit:        210681e5612703a5b9f3e578db31e234cf58cb6d
Parent:        c582b8ad491784775c9ef193beeadad2dda58306
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Thu May 21 09:51:00 2009 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu May 21 10:27:58 2009 -0400

rgmanager: Check for all ORA- errors on start/stop

Resolves: 471066
---
 rgmanager/src/resources/oracledb.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rgmanager/src/resources/oracledb.sh b/rgmanager/src/resources/oracledb.sh
index 5c7b15c..137289f 100755
--- a/rgmanager/src/resources/oracledb.sh
+++ b/rgmanager/src/resources/oracledb.sh
@@ -299,7 +299,7 @@ start_db()
 	#
 
 	rm -f $tmpfile
-	grep -q "failure" $logfile
+	grep -q "^ORA-" $logfile
 	if [ $? -eq 0 ]; then
 		rm -f $tmpfile
 	echo "ORACLE_SID Incorrectly set?"
@@ -343,7 +343,7 @@ stop_db()
 	# If we see 'failure' in the log, we're done.
 	#
 	rm -f $tmpfile
-	grep -q failure $logfile
+	grep -q "^ORA-" $logfile
 	if [ $? -eq 0 ]; then
 		echo_failure
 		echo


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-21 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-21 14:29 cluster: RHEL5 - rgmanager: Check for all ORA- errors on start/stop Lon Hohberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).