Product SiteDocumentation Site

3.6. Resource Actions

RGManager expects the following return values from resource agents:

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.