Skip to content

Setting WatchdogSec=0 breaks the Engine on recent Systemd versions #2591

@lmbarros

Description

@lmbarros

I set WatchdogSec=0 for the Engine on a recent balenaOS build and the Engine failed to start.

From what I see, the problem is that on newer Systemd versions, setting WatchdogSecs=0 no longer causes the env var WATCHDOG_USEC to be set. This causes healthdog to fail with Invalid value for WATCHDOG_USEC right upon start up: https://github.com/balena-os/healthdog-rs/blob/master/src/main.rs#L53 (So, probably the right fix is on healthdog itself.)

I think this is the Systemd commit that introduced this new behavior: systemd/systemd@f16890f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions