List Info

Thread: Ahem, another feature request ...




Ahem, another feature request ...
country flaguser name
Switzerland
2008-03-22 04:37:13
First, I believe a loud "Happy Birthday" is in
order
for Alan's brainchild and all the fine people he
gathered to give it a proper ... development ?  ...
and to help Heartbeat lead it's little HA revolution
in the world of open source.

Here is my request: would it be possible to make
Heartbeat pass along any user-defined parameter with a
LSB init resource along the agent command when
Heartbeat invokes it ?

I tried doing exactly that:
- define a LSB resource
- define 2 unnamed parameters for that resource
- make Heartbeat invoke the LSB resource.

The LSB included instructions to print out $1, $2, $3
and the result was only the agent command (START,
STOP, STATUS...) came out.

Thanky for your feedback.



     
____________________________________________________________
________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
_______________________________________________________
Linux-HA-Dev: Linux-HA-Devlists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Re: Ahem, another feature request ...
country flaguser name
Germany
2008-03-22 16:24:52
On 2008-03-22T02:37:13, Joe Bill <pica1dillyyahoo.com> wrote:

> First, I believe a loud "Happy Birthday" is
in order
> for Alan's brainchild and all the fine people he
> gathered to give it a proper ... development ?  ...
> and to help Heartbeat lead it's little HA revolution
> in the world of open source.
> 
> Here is my request: would it be possible to make
> Heartbeat pass along any user-defined parameter with a
> LSB init resource along the agent command when
> Heartbeat invokes it ?
> 
> I tried doing exactly that:
> - define a LSB resource
> - define 2 unnamed parameters for that resource
> - make Heartbeat invoke the LSB resource.

What you're describing is the calling convention for
class=heartbeat.
LSB scripts are, quite obviously, called like LSB scripts -
that is, w/o
further parameters.

You could specify the full pathname for the heartbeat
scripts as the
type, that should allow you to use that mechanism too.

Or use the OCF RA extensions, which are 100% LSB compatible
- the script
can figure out whether it was called from a OCF-compliant
resource
manager or as an init script?


Regards,
    Lars

-- 
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG
Nürnberg)
"Experience is the name everyone gives to their
mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: Linux-HA-Devlists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )