The Recovery tab is used to define the actions that are taken by the Windows Service Control Manager if the entire service fails (e.g. firedaemon.exe fails). Normally, you would not need to configure Service Recovery as FireDaemon Pro would restart your program based on the options you have set in the Lifecycle tab.


Note: You can set up a service termination cascade. This is when the program running under FireDaemon Pro control fails and you want the restart to be handled by the Windows Service Control Manager, rather than FireDaemon Pro. For the Recovery option to work correctly under these circumstances, you must set the Upon Program Exit option in the Lifecycle tab to Terminate FireDaemon service


The Recovery tab provides the same functionality as that found on the Recovery options of each built-in service in the Windows Services application (services.msc).



The following table describes the fields provided on the Recovery page.


FieldDescription
First/Second/Subsequent FailureDefines the action taken in the event of a service failure.

Following are the valid options:
  • Take No Action
  • Restart the Service
  • Run a Program
  • Restart the Computer

While these options are similar to FireDaemon Pro functions, these responses are actually handled by the Windows Service Control Manager and not FireDaemon Pro.
Reset Fail Count AfterThis option determines the number of days after which the failure counter is reset to zero.

When the failure counter is reset, the sequence of First/Second/Subsequent Failure actions starts at the beginning again.
Restart Service AfterThis option determines the time (in minutes) after which a failed service restarts.
Enable Actions for Stops with ErrorsIf selected, the First and subsequent failure actions will be triggered if the service stops with an error.
Restart Computer OptionsThis displays the Restart Computer Options dialog box.

In the dialog box, set the time (In minutes) to wait before restarting the system.

Optionally, a message can also be broadcast to other computers on the network before the restart.


Note: The feature is only enabled when the Restart the Computer option is selected as a failure action.

Run Program

The Run Program options are only enabled if one of the failure actions is set to Run a Program.

The following options are available:
ProgramThe full path and name of the program executable to run.
Command Line ParametersThe command-line parameters to be passed to the program executable.

If any parameter contains whitespace characters, it must be quoted, e.g. "string with spaces"
Append Fail Count to End of Command LineAppends the /fail=%1% parameter to the command line parameters.

%1% is a replaceable parameter. In the event of a failure, this parameter is replaced by the value 1 through 3 to represent the value of the failure counter.