On 12.05.2022 21:03, Lentes, Bernd wrote: > Hi, > > from my understanding the resource agents in > /usr/lib/ocf/resource.d/heartbeat are quite similar > to the old scripts in /etc/init.d started by init. > Init starts these scripts with "script [start|stop|reload|restart|status]". > Inside the script there is a case construct which checks the options the > script is started with, and calls the appropriate function. > > Similar to the init scripts the cluster calls the RA with "script > [start|stop|monitor ...]" > But i'm missing this construct in the VirtualDomain RA. From where does it > know how it is invoked ? > I don't see any logic which checks the options the script is called with. >
It's function ocf_rarun() that does it. _______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/