From 6d619f2a8d8a3666f1743a519ccd164f6662aa32 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 27 Sep 2025 12:13:20 +0000 Subject: [PATCH] daemon: Enable the watchdog Signed-off-by: Michael Tremer --- src/daemon/daemon.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.47.3