Skip to content
  • Lennart Poettering's avatar
    systemd: add hardware watchdog support · e96d6be7
    Lennart Poettering authored
    This adds minimal hardware watchdog support to PID 1. The idea is that
    PID 1 supervises and watchdogs system services, while the hardware
    watchdog is used to supervise PID 1.
    
    This adds two hardware watchdog configuration options, for the runtime
    watchdog and for a shutdown watchdog. The former is active during normal
    operation, the latter only at reboots to ensure that if a clean reboot
    times out we reboot nonetheless.
    
    If the runtime watchdog is enabled PID 1 will automatically wake up at
    half the configured interval and write to the watchdog daemon.
    
    By default we enable the shutdown watchdog, but leave the runtime
    watchdog disabled in order not to break independent hardware watchdog
    daemons people might be using.
    
    This is only the most basic hookup. If necessary we can later on hook
    up the watchdog ping more closely with services deemed crucial.
    e96d6be7