关于 Windows 服务恢复操作设置的说明
我正在查看恢复操作设置,有几件事需要澄清。
如果重置失败计数后有 0 天,并且我的操作如下:
- 重新启动服务 - 第一次失败时
- 重新启动服务 - 第二次失败时
- 重新启动计算机 - 后续失败时
失败计数是否会在成功时重置重新启动服务?
第一次失败时失败计数是否会重置?因此永远没有机会执行第二个或第三个动作?
连续第三次失败时,计算机重新启动,服务启动,然后再次失败;这会再次重新启动计算机吗?
提前致谢!
海梅
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:
- Restart the Service - on first failure
- Restart the Service - on second failure
- 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将“Reset failure count after:”设置为 0 表示“在每次失败后将失败计数重置为 0”。这有效地禁用了“第二次失败”和“后续失败”操作,并且您将始终获得“第一次失败”操作。
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.
我已经在 Windows XPE 上测试了失败计数。当服务运行时,我通过 Windows 任务管理器的“结束进程”使其失败。我定义了 3 个恢复操作:
因此,似乎每次计算机重新启动后都会重置此故障计数器...
我精确地说,我的故障计数配置为在 1 天后重置。
I've tested that fail count on windows XPE. When the service run and I make it fail with "End Process" of the Windows task Manager. I have defined 3 recovery actions:
So it seems that this failure counter is reset after every reboot of the computer...
I precise that my fail count is configured to reset after 1 day.