Am Mittwoch, 16. April 2008 15:37 schrieb Andrew Beekhof:
> On Wed, Apr 16, 2008 at 3:07 PM, Michael Schwartzkopff
(...)
> Ok, so right now Dummy only takes one parameter called "state" (no
> idea why I called it that).
> Add a new one, but make it non-unique.
>
> <parameter name="somename" unique="0">
> <longdesc lang="en">
> Random parameter that, when changed, causes a reload instead of a restart
> </longdesc>
> <shortdesc lang="en">Some parameter</shortdesc>
> <content type="string" default="" />
> </parameter>
>
> And make sure the agent advertises the reload operation:
>
> <action name="reload"       timeout="90" />
>
> Then when defining the resource, include an nvpair for "somename".  eg
>
>                       <primitive class="ocf" id="test" provider="heartbeat" 
> type="Dummy">
>                               <instance_attributes id="test">
>                                       <attributes>
>                                               <nvpair id="test_someename" 
> name="someename" value="a"/>
>                                       </attributes>
>                               </instance_attributes>
>                       </primitive>
>
> Then just change the value of "somename" and the resource will get
> reloaded.

I think I got it. The point is, that the resource is reloaded on every change 
of any attribute. Isn't it?

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: [EMAIL PROTECTED]
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to