RGManager expects the following return actions to be implemented in resource agents:
start - start the resource
stop - stop the resource
status - check the status of the resource
metadata - report the OCF RA XML metadata
OCF has a wide range of return codes for the monitor operation, but since RGManager calls status, it relies almost exclusively on SysV-style return codes.
- 0 - success
stop after stop or stop when not running must return success
start after start or start when running must return success
- nonzero - failure
if the stop operation ever returns a nonzero value, the service enters the failed state and the service must be recovered manually.