On Fri, May 28, 2010 at 04:09:03PM -0700, Bob Schatz wrote:
> Thanks Lars and Dejan for your feedback.
> 
> I have started reading the lrmd source.

Good old inittab, anyone?

> One thing I am worried about is that if I give a PID to lrmd, how will lrmd 
> monitor it?
> My RA is a shell script that forks off a daemon.  If I give this daemon PID 
> to lrmd does lrmd start a thread to monitor PID?
> I don't think that lrmd would get a SIGCHLD in my case.

Use the "anything" resource agent, and define a monitor action script of your 
choice?
or put a loop in your script, and restart whatever is necessary from there,
then let lrm monitor your script, and restart that script if necessary?

There are so many ways to do it that I really fail to see the challenge?

-- 
: 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.
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to