<font size=2 face="sans-serif">Okay, my script is now passing the ocf-tester
but it is exhibiting strange behavior. It is based on:</font>
<br>
<br><font size=2 face="sans-serif">#!/bin/sh</font>
<br><font size=2 face="sans-serif">service=smbd</font>
<br><font size=2 face="sans-serif">if ps ax | grep -v grep | grep ${service}
> /dev/null</font>
<br><font size=2 face="sans-serif">then</font>
<br><font size=2 face="sans-serif">    echo "$service service
running, everything is OK"</font>
<br><font size=2 face="sans-serif">else</font>
<br><font size=2 face="sans-serif">    echo "$service is
not running"</font>
<br><font size=2 face="sans-serif">fi</font>
<br>
<br><font size=2 face="sans-serif">So in the monitor() method of my RA:</font>
<br>
<br><font size=2 face="sans-serif">service=smbd</font>
<br><font size=2 face="sans-serif">if ps ax | grep -v grep | grep ${service}
> /dev/null</font>
<br><font size=2 face="sans-serif">then</font>
<br><font size=2 face="sans-serif">    return $OCF_SUCCESS</font>
<br><font size=2 face="sans-serif">else</font>
<br><font size=2 face="sans-serif">    return $OCF_NOT_RUNNING</font>
<br><font size=2 face="sans-serif">fi</font>
<br>
<br><font size=2 face="sans-serif">Whether the smbd service running or
not, in the RA the first case is always returned: "return $OCF_SUCCESS"</font>
<br>
<br><font size=2 face="sans-serif">Any ideas?</font>
<table width=100%>
<tr valign=top>
<td width=100%>
<form action="http://usthml06.dadc.am.sony.com/mail/sfeeney.nsf/($Inbox)/$new/?EditDocument&Form=h_PageUI&ui=classic" method=post>
<br><font size=1><br>
</font>
<table width=100%>
<tr>
<td width=100%><font size=1><br>
</font>
<table width=100%>
<tr>
<td width=100%><font size=3>Thanks,<br>
Sean Feeney</font></table>
<br></table>
<br></form></table>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Andrew Beekhof <andrew@beekhof.net></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">The Pacemaker cluster resource manager
<pacemaker@oss.clusterlabs.org></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">06/30/2011 10:07 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Pacemaker] Custom OCF Resource
Agents</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3><br>
</font>
<br><font size=3>On Fri, Jul 1, 2011 at 7:32 AM, <</font><a href=mailto:Sean.Feeney@sonydadc.com><font size=3 color=blue><u>Sean.Feeney@sonydadc.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif">I have written a few ocf resource agents
and need to debug. Is there any way to do this outside of pacemaker/crm?
</font>
<br>
<br><font size=3>ocf-tester is your friend :-)</font>
<br><font size=3> </font>
<br><font size=2 face="sans-serif">If I need to do this within pacemaker/crm,
will the cluster pick up my changes to the ocf files automatically or do
I need to run some sort of refresh or do I have to completely delete and
re-add the resource?</font>
<br>
<br><font size=3>Nope.  We don't cache the contents of your script.</font>
<br><font size=3> </font>
<table width=100%>
<tr valign=top>
<td width=100%>
<form action="http://usthml06.dadc.am.sony.com/mail/sfeeney.nsf/($Inbox)/$new/?EditDocument&Form=h_PageUI&ui=classic" method=post><font size=1><br>
</font>
<br>
<table width=100%>
<tr>
<td width=100%>
<br>
<table width=100%>
<tr>
<td width=100%><font size=3>Thanks,<br>
Sean Feeney</font></table>
<br></table>
<br>
<br></form></table>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
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.</font><font size=3><br>
_______________________________________________<br>
Pacemaker mailing list: </font><a href=mailto:Pacemaker@oss.clusterlabs.org><font size=3 color=blue><u>Pacemaker@oss.clusterlabs.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://oss.clusterlabs.org/mailman/listinfo/pacemaker target=_blank><font size=3 color=blue><u>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</u></font></a><font size=3><br>
<br>
Project Home: </font><a href=http://www.clusterlabs.org/ target=_blank><font size=3 color=blue><u>http://www.clusterlabs.org</u></font></a><font size=3><br>
Getting started: </font><a href=http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf target=_blank><font size=3 color=blue><u>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</u></font></a><font size=3><br>
Bugs: </font><a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target=_blank><font size=3 color=blue><u>http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>
</font></tt><a href=http://oss.clusterlabs.org/mailman/listinfo/pacemaker><tt><font size=2>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</font></tt></a><tt><font size=2><br>
<br>
Project Home: </font></tt><a href=http://www.clusterlabs.org/><tt><font size=2>http://www.clusterlabs.org</font></tt></a><tt><font size=2><br>
Getting started: </font></tt><a href=http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf><tt><font size=2>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</font></tt></a><tt><font size=2><br>
Bugs: </font></tt><a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker"><tt><font size=2>http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</font></tt></a><tt><font size=2><br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
<br>
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.</font>