Show Table of Contents
3.6. Resource Actions
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
3.6.1. Return Values
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 successstart 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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.