Any resource agent must support one command-line argument which specifies the action the resource agent is about to execute. The following actions must be supported by any resource agent:
start — starts the resource.
stop — shuts down the resource.
monitor — queries the resource for its state.
meta-data — dumps the resource agent metadata.
In addition, resource agents may optionally support the following actions:
promote — turns a resource into the Master role (Master/Slave
resources only).
demote — turns a resource into the Slave role (Master/Slave
resources only).
migrate_to and migrate_from — implement live migration of
resources.
validate-all — validates a resource’s configuration.
usage or help — displays a usage message when the resource
agent is invoked from the command line, rather than by the cluster
manager.
status — historical (deprecated) synonym for monitor.