Clarification on Windows Service Recovery Actions Settings

Jaime picture Jaime · Sep 13, 2011 · Viewed 18.7k times · Source

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

Answer

CoreTech picture CoreTech · Sep 15, 2011

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.