[Pacemaker] custom path to LSB compliant script in primitive?

Lars Ellenberg lars.ellenberg at linbit.com
Wed Oct 6 21:05:37 UTC 2010


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.




More information about the Pacemaker mailing list