On Thu, Oct 07, 2010 at 09:36:27AM +1300, Craig Hurley wrote: > Hello, > > Is it possible to provide a custom path to a lsb compliant script in a > primitive? To get it working I copied my script to /etc/init.d/rp and > I'm using the following config: > > primitive p_rp lsb:rp \ > op monitor interval="30s" \ > meta target-role="Started" > > ... but I'd like to leave the startup script in it's default install > path of /opt/x/y/x/rp and modify the config so point at that default > path. > > Is this possible? > Is this documented somewhere?
Interestingly, though apparently not obviously documented, all resource agent classes (which is: ocf, lsb and heartbeat) allow to specify a full path, so primitive p_rp lsb:/opt/x/y/z/rp would do it for you. -- : 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. _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker