[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: AW: [Linux-ha-dev] 1.2.2 bug fix release is coming
From:       Alan Robertson <alanr () unix ! sh>
Date:       2004-04-30 20:54:43
Message-ID: 4092BD13.6070705 () unix ! sh
[Download RAW message or body]

Martin Bene wrote:
> Hi Alan,
> 
> 
>>Otherwise they might get missed in the next stable release - which
> 
> should
> 
>>be out in a week or so...
> 
> 
> Recently I ran into a problem with the apache script: I've got the
> apache config file on a drbd device (together with the rest of the
> webserver stuff). When trying to run apache stop on a node that doesn't
> hold the resource, the apache script fails because if can't access the
> config file.
> 
> I've now changed the script to assume the resource is down and return
> without an error in this case.
> 
> Bye, Martin


Thanks Martin!

Could you try the slightly different version I now have in CVS and tell me 
what you find out?  [see attachment]

	Thanks!


-- 
     Alan Robertson <alanr@unix.sh>

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce

["Attached Message" (message/rfc822)]

Return-Path: <linux-ha-cvs-bounces@lists.community.tummy.com>
Delivered-To: spamcop-net-alanr@spamcop.net
Received: (qmail 13859 invoked from network); 30 Apr 2004 20:45:28 -0000
Received: from unknown (192.168.1.101)
	by blade4.cesmail.net with QMQP; 30 Apr 2004 20:45:28 -0000
Received: from unknown (HELO demo.bb4.com) (65.39.147.83)
	by mailgate.cesmail.net with SMTP; 30 Apr 2004 20:45:28 -0000
Received: from community.tummy.com
	(IDENT:TkBExa0fxwOC8J3GQ62jpU+OOWekLyUB@community.tummy.com
	[198.49.126.7])
	by demo.bb4.com (8.12.8/8.11.3) with ESMTP id i3UKafLD006257
	for <alanr@unix.sh>; Fri, 30 Apr 2004 16:36:41 -0400 (EDT)
	(envelope-from linux-ha-cvs-bounces@lists.community.tummy.com)
Received: (qmail 14445 invoked by uid 0); 30 Apr 2004 20:45:23 -0000
Received: from localhost (HELO community.tummy.com) (127.0.0.1)
	by community.tummy.com with SMTP; 30 Apr 2004 20:45:15 -0000
Received: (qmail 14300 invoked by uid 108); 30 Apr 2004 20:45:10 -0000
Date: 30 Apr 2004 20:45:10 -0000
Message-ID: <20040430204510.14298.qmail@community.tummy.com>
To: linux-ha-cvs@lists.community.tummy.com
From: linux-ha-cvs@lists.community.tummy.com
Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by alan from 24.221.212.80
X-BeenThere: linux-ha-cvs@lists.community.tummy.com
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: linux-ha-dev@lists.community.tummy.com,
	linux-ha-cvs@lists.community.tummy.com
List-Id: Linux-HA CVS commits <linux-ha-cvs.lists.community.tummy.com>
List-Unsubscribe: <http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs>,
	<mailto:linux-ha-cvs-request@lists.community.tummy.com?subject=unsubscribe>
List-Post: <mailto:linux-ha-cvs@lists.community.tummy.com>
List-Help: <mailto:linux-ha-cvs-request@lists.community.tummy.com?subject=help>
List-Subscribe: <http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs>,
	<mailto:linux-ha-cvs-request@lists.community.tummy.com?subject=subscribe>
Sender: linux-ha-cvs-bounces@lists.community.tummy.com
Errors-To: linux-ha-cvs-bounces@lists.community.tummy.com
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on blade4
X-Spam-Level: 
X-Spam-Status: hits=0.3 tests=NO_REAL_NAME version=2.63
X-SpamCop-Checked: 192.168.1.101 65.39.147.83 198.49.126.7 127.0.0.1 
X-SpamCop-Whitelisted: tummy.com

linux-ha CVS committal

Author  : alan
Host    : 24.221.212.80
Project : linux-ha
Module  : heartbeat

Dir     : linux-ha/heartbeat/resource.d


Modified Files:
	apache.in 


Log Message:
Put in a bug fix to the apache resource script suggested by
Martin Bene <martin.bene@icomedias.com>.  It used to have a stop failure
if the configuration file wasn't present.  Now it comments on it, and
declares victory ;-)

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/resource.d/apache.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- apache.in	8 Oct 2002 03:35:24 -0000	1.3
+++ apache.in	30 Apr 2004 20:45:10 -0000	1.4
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $Id: apache.in,v 1.3 2002/10/08 03:35:24 alan Exp $
+# $Id: apache.in,v 1.4 2004/04/30 20:45:10 alan Exp $
 #
 #	High-Availability Apache/IBMhttp control script
 # 
@@ -88,7 +88,7 @@
 		monitor in the methods call if we don't know think
 		that the monitor call will actually work ;-)
 
-	$Id: apache.in,v 1.3 2002/10/08 03:35:24 alan Exp $
+	$Id: apache.in,v 1.4 2004/04/30 20:45:10 alan Exp $
 	!
   exit 1
 }
@@ -388,6 +388,13 @@
     *)		;;
   esac
   COMMAND=$1
+fi
+
+if
+  [ ! -f "$CONFIGFILE" -a "X$COMMAND" -eq Xstop ]
+then
+  echo "$CONFIGFILE not found - apache considered stopped"
+  exit 0
 fi
 
 if


_______________________________________________
Linux-ha-cvs mailing list
Linux-ha-cvs@lists.community.tummy.com
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs



_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic