为什么关闭watchdog.service后,会启动wd_keepalive.service

Debian Bug report logs - #768168
watchdog does not start at boot

Yes, indeed that is what we need. Watchdog triggers a special device to tell the hardware watchdog that everything is well. When it is stopped it closes the device and obviously stops triggering it. Normally that means the hardware watchdog is disabled.
However, there is a kernel setting called CONFIG_WATCHDOG_NOWAYOUT or somesuch that makes the kernel not accept the closing, meaning the hardware watchdog stays on alert and triggers a reset after a while.
With watchdog having to be stopped early (it could be monitoring other services) the system might run into a reset by the watchdog before its shutdown has been finished.
Therefore we need a small program doing nothing but triggering the device, which is wd_keepalive.

看门狗触发一个特殊的设备来告诉硬件看门狗一切正常。当看门狗停止时,它会关闭设备,而且很明显它会停止触发设备。通常这意味着硬件看门狗被禁用了。
但是,有一个内核设置称为CONFIG_WATCHDOG_NOWAYOUT或别的啥,使得内核不接受关闭。这意味着硬件看门狗会保持警戒并在一段时间后触发内核重启。
由于看门狗必须提前停止(它可能正在监视其他服务),系统就可能会在关闭完成之前被看门狗重启。
所以我们需要一个小程序用来触发设备,即wd_keepalive。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值