public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - cmirror: Fix bug 462732 - cmirror init script shouldn't fail to start if it's already started
@ 2008-10-08 21:19 Jonathan Brassow
  0 siblings, 0 replies; only message in thread
From: Jonathan Brassow @ 2008-10-08 21:19 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e04ecdfd2250c49b53c0d2ffaa49bf7c7f159131
Commit:        e04ecdfd2250c49b53c0d2ffaa49bf7c7f159131
Parent:        027ab643fa43ab1b97724b5702f55bcbe619b12e
Author:        Jonathan Brassow <jbrassow@redhat.com>
AuthorDate:    Wed Oct 8 16:18:22 2008 -0500
Committer:     Jonathan Brassow <jbrassow@redhat.com>
CommitterDate: Wed Oct 8 16:18:22 2008 -0500

cmirror:  Fix bug 462732 - cmirror init script shouldn't fail to start if it's already started

Make cmirror init script LSB compliant.
---
 cmirror/init.d/cmirror |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmirror/init.d/cmirror b/cmirror/init.d/cmirror
index fba99e1..170f004 100644
--- a/cmirror/init.d/cmirror
+++ b/cmirror/init.d/cmirror
@@ -30,15 +30,15 @@ start()
 	echo
 
         echo -n "Starting clustered mirror log server:"
-	if ps -C aisexec >& /dev/null; then
-	    clogd >& /dev/null
-	else
+	if ! ps -C aisexec >& /dev/null; then
 	    failure "startup"
 	    echo
 	    echo "  Cluster infrastructure is not running"
 	    return 1
 	fi
 
+	ps -C clogd >& /dev/null || clogd >& /dev/null
+
 	rtrn=$?
         if [ $rtrn -eq 0 ]; then
                 success "startup"


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

only message in thread, other threads:[~2008-10-08 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08 21:19 RHEL5 - cmirror: Fix bug 462732 - cmirror init script shouldn't fail to start if it's already started Jonathan Brassow

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).