Product SiteDocumentation Site

Anexa B. Mai Multe Despre Agenţii de Resursă OCF

Cuprins

B.1. Locaţia Scripturilor Personalizate
B.2. Acţiuni
B.3. Cum sunt Interpretate Codurile de Ieșire OCF?
B.4. OCF Return Codes
B.5. Excepţii

B.1. Locaţia Scripturilor Personalizate

OCF Resource Agents are found in /usr/lib/ocf/resource.d/provider.
When creating your own agents, you are encouraged to create a new directory under /usr/lib/ocf/resource.d/ so that they are not confused with (or overwritten by) the agents shipped with Heartbeat.
So, for example, if you chose the provider name of bigCorp and wanted a new resource named bigApp, you would create a script called /usr/lib/ocf/resource.d/bigCorp/bigApp and define a resource:
<primitive id="custom-app" class="ocf" provider="bigCorp" type="bigApp"/>