[Pacemaker] Custom OCF Resource Agents

Sean.Feeney at sonydadc.com Sean.Feeney at sonydadc.com
Mon Jul 4 15:01:24 EDT 2011


You are very correct. I realized that after several hours of pulling my 
hair out that night :-)





Thanks,
Sean Feeney






From:
Lars Ellenberg <lars.ellenberg at linbit.com>
To:
<pacemaker at oss.clusterlabs.org>
Date:
07/04/2011 02:48 PM
Subject:
Re: [Pacemaker] Custom OCF Resource Agents



On Fri, Jul 01, 2011 at 02:47:02PM -0400, Sean.Feeney at sonydadc.com wrote:
> Okay, my script is now passing the ocf-tester but it is exhibiting 
strange 
> behavior. It is based on:
> 
> #!/bin/sh
> service=smbd
> if ps ax | grep -v grep | grep ${service} > /dev/null
> then
>     echo "$service service running, everything is OK"
> else
>     echo "$service is not running"
> fi
> 
> So in the monitor() method of my RA:
> 
> service=smbd
> if ps ax | grep -v grep | grep ${service} > /dev/null
> then
>     return $OCF_SUCCESS
> else
>     return $OCF_NOT_RUNNING
> fi
> 
> Whether the smbd service running or not, in the RA the first case is 
> always returned: "return $OCF_SUCCESS"
> 
> Any ideas?

Your script name happen to contain "smbd"?
 ;)


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: 
http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




Internet Email Confidentiality: Privileged/Confidential Information may be 
contained in this message. If you are not the addressee indicated (or 
designated as responsible for delivery of this message to such person), 
you may not copy or deliver this to anyone else. In such case, you should 
destroy this message, and notify me immediately. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110704/de2fe136/attachment-0003.html>


More information about the Pacemaker mailing list