I previously described the GUI for Managing service failures.

When you configure Service Recovery options, the configuration information is stored in up to three Value Names located at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceShortName> where <ServiceShortName> is the service's short name.

The Value Names are:

Value Name                Data Type    D e s c r i p t i o n                              FailureActions            REG_BINARY   Configuration information for 1st, 2nd, and subsequent failures.                                                                     You can configure a service and use it as a model.                              FailureCommand            REG_SZ       Your program or script, if you configured Run a File.                              RebootMessage             REG_SZ       is the restart message, if you configured Reboot the Computer.