[DRBD-user] heartbeat running services twice

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue May 10 23:32:10 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2005-05-10 13:42:52 +0200
\ Hegedus Gabor:
> Hi!
> 
> I'm using sarge with heartbeat 1.2.3-9. When heartbeat take over the
> control, it starts twice all services (eg apache, own script).

all services/scripts should be idempotent,
so should ignore (and return success) for a stop request if stopped,
and should ignore (and return success) for a start request if already
running. most (hopefully all...) provided scripts are.
your own scripts need to be written carefully so they are, too. 

> How can I make it runs only once?

though, heartbeat should run them only once.
why it runs them twice in your case is difficult to tell without logs
and setup details...

btw, you should ask heartbeat questions on the heartbeat lists.

	Lars Ellenberg



More information about the drbd-user mailing list