Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clarification on Windows Service Recovery Actions Settings

I am looking at the recovery actions settings and there are a couple of things that I need clarified.

If I have 0 days as my reset fail count after, and have the following as my actions:

  1. Restart the Service - on first failure
  2. Restart the Service - on second failure
  3. Reboot the Computer - on subsequent failures

Does the fail count get reset on a successful restart of the service?

Does the fail count get reset on the first failure? Hence never having a chance to perform the second or third actions?

On the third successive failure, the computer gets rebooted, the service get started and then fails again; would this reboot the computer again?

Thanks in advance!

Jaime

like image 769
Jaime Avatar asked Sep 13 '11 16:09

Jaime


People also ask

What is reset fail count after?

Reset fail count after setting is amount of time from service start after which fail counter will be reseted. According to defined sample configurations where each service close unexpectedly after 5s from start each case never hits reset counter definition. To reset counter timeout should be less then 5s ex.

What is enable actions for stops with errors?

The "Enable actions for stops with errors" checkbox was introduced with Windows Vista and Windows Server 2008, providing a single, embarrassing line of documentation: Select Enable actions for stops with errors in order to trigger the recovery actions that the service stopped with an error.


1 Answers

Setting "Reset fail count after:" to 0 means "reset the fail count to 0 after each failure". This effectively disables both the "second failure" and "subsequent failure" actions and you will always get the "first failure" action.

like image 91
CoreTech Avatar answered Feb 26 '23 23:02

CoreTech