[Pacemaker] running scripts in a resource

Florian Crouzat gentoo at floriancrouzat.net
Fri Nov 15 12:46:00 UTC 2013


Le 15/11/2013 13:32, Dvorak Andreas a écrit :
> Dear all,
>
> I would like to create a resource that sets up routes an a node.

I'm quite sure there are dedicated resources to manage routes *but* if 
you want to script stuff yourself, then create a lsb resource (eg: 
lsb:my_routes) which adds routes in the start() section, checks for them 
in the status() section and removes them in the stop() section.
Make sure your return code are LSB compliant: 
clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/html/Pacemaker_Explained/ap-lsb.html

> I have got three scripts
>
> check_routes.sh
>
> delete_routes.sh
>
> setup_routes.sh
>
> but unfortunately I do not find documentation how to do that. Can
> somebody please help me?
>


-- 
Cheers,
Florian Crouzat




More information about the Pacemaker mailing list