All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan McCabe <rmccabe@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/5] rgmanager: Fix orainstance.sh error checking
Date: Thu, 28 Jun 2012 15:57:10 -0400	[thread overview]
Message-ID: <20120628195708.GA79983@redhat.com> (raw)

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



             reply	other threads:[~2012-06-28 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 19:57 Ryan McCabe [this message]
2012-07-04 11:04 ` [Cluster-devel] [PATCH 1/5] rgmanager: Fix orainstance.sh error checking Fabio M. Di Nitto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120628195708.GA79983@redhat.com \
    --to=rmccabe@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.