| Action | Description | Instructions |
|---|---|---|
| start | Start the resource | Return 0 on success and an appropriate error code otherwise. Must not report success until the resource is fully active. |
| stop | Stop the resource | Return 0 on success and an appropriate error code otherwise. Must not report success until the resource is fully stopped. |
| monitor | Check the resource's state |
Exit 0 if the resource is running, 7 if it is stopped and anything else if it is failed.
NOTE: The monitor script should test the state of the resource on the local machine only.
|
| meta-data | Describe the resource |
Provide information about this resource as an XML snippet. Exit with 0.
NOTE: This is not performed as root.
|
| validate-all | Verify the supplied parameters are correct | Exit with 0 if parameters are valid, 2 if not valid, 6 if resource is not configured. |
| Action | Description | Instructions |
|---|---|---|
| promote | Promote the local instance of a multi-state resource to the master/primary state | Return 0 on success |
| demote | Demote the local instance of a multi-state resource to the slave/secondary state | Return 0 on success |
| notify | Used by the cluster to send the agent pre and post notification events telling the resource what is or did just take place | Must not fail. Must exit 0 |