From: Michael Tremer Date: Sat, 27 Sep 2025 12:13:20 +0000 (+0000) Subject: daemon: Enable the watchdog X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d619f2a8d8a3666f1743a519ccd164f6662aa32;p=telemetry.git daemon: Enable the watchdog Signed-off-by: Michael Tremer --- diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 15a2c8d..21d7a70 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -44,6 +44,13 @@ static int collecty_daemon_setup_loop(collecty_daemon* self) { if (r < 0) return r; + // Enable the watchdog + r = sd_event_set_watchdog(self->loop, 1); + if (r < 0) { + ERROR(self->ctx, "Failed to activate watchdog: %s\n", strerror(-r)); + return r; + } + return 0; }