To shut down an RCM from the command line, use rp_rcm_shutdown. See cm_rp_rcm_shutdown for details.
If the RCM detects an error, it shuts down automatically, posting a notification message to the log. See “Configuring the notification process”.