On Fri, Jul 01, 2011 at 02:47:02PM -0400, sean.fee...@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@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