3.6. Resource Actions

download PDF
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 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.
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.