Configure Windows service recovery to handle an expected recoverable failure while preserving evidence of repeated crashes. Automatic restart is useful only when restarting that service is safe for its data and dependencies.
IN THIS ARTICLE
01 Review the service before changing recovery
Identify the service's actual name, executable, account, dependencies and vendor recovery guidance. Record the current settings. If a cluster, application supervisor or another management system owns its lifecycle, use that system's supported recovery process instead of adding competing restart behaviour.
Inspect the recent failure in Event Viewer. Fix an invalid password, inaccessible database or missing file directly. A rapid restart loop does not repair a persistent configuration error.
02 Set a deliberate recovery policy
- Open
services.mscwith the required administrative permissions. Select the exact service and open Properties. - Open the Recovery tab. Review the actions for the first, second and subsequent failures.
- Choose an appropriate action for each stage. For a service that safely restarts, allow a bounded initial restart sequence and define the later escalation or no-action state.
- Set a restart delay that gives dependencies time to recover and avoids a tight loop. Choose the failure-count reset period deliberately rather than copying values from another service.
- Review whether recovery should also apply to stops reported with an error. This is different from a normal successful stop and depends on how the service reports failure.
- Apply the settings and arrange a controlled test according to the application vendor's procedure. Do not crash a live data-writing process merely to test the checkbox.
- Verify the resulting service state, application function and recorded recovery event. Make sure repeated failures produce an alert or operational review.
03 Keep the policy observable
Record the chosen delay, failure sequence and owner. Microsoft documents a problem involving trigger-start services with continuous recovery and a zero reset period, which reinforces the need to review those settings in context. Use the specific vendor remedy when that scenario matches your system.
Common questions
Will clicking Stop always trigger automatic recovery?
No. A clean administrative stop is not the same as a crash or a stop reporting an error. Validate the configured failure condition using the supported test method.
Should the final recovery action reboot the server?
Only when the service's recovery design and operational approval justify the impact on every workload. A single application failure should not automatically become an unreviewed whole-server restart.