[ClusterLabs] resource "force" start / always start - how?

Ken Gaillot kgaillot at redhat.com
Wed Nov 1 10:27:00 EDT 2017

On Wed, 2017-11-01 at 11:32 +0000, lejeczek wrote:
> hi everyone
> question - can a resource(systemd) be configured so 
> whenever(enable,move) cluster starts such a resource it does 
> not care/check for it's status and always starts it?
> I have a service that will remain after exit and is of 
> oneshot type, I'd like cluster to start it even if cluster 
> thinks the service is already up.
> many thanks

Pacemaker cannot model one-shot commands well.

Probably the best option is to take the Dummy resource agent and modify
it so that "start" does your one-shot command. Then Pacemaker can start
and stop it as normal.
Ken Gaillot <kgaillot at redhat.com>

More information about the Users mailing list