From 3b2316e448ad4353964779b4c31edfe20b96ea4f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 29 Jan 2023 21:53:19 +0000 Subject: [PATCH] networkd: Enable the service watchdog Signed-off-by: Michael Tremer --- src/networkd/daemon.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/networkd/daemon.c b/src/networkd/daemon.c index 25fdbdb7..c6acefe2 100644 --- a/src/networkd/daemon.c +++ b/src/networkd/daemon.c @@ -41,6 +41,13 @@ static int nw_daemon_setup_loop(struct nw_daemon* daemon) { return 1; } + // Enable the watchdog + r = sd_event_set_watchdog(daemon->loop, 1); + if (r < 0) { + //ERROR("Could not activate watchdog: %m\n"); + return 1; + } + return 0; } -- 2.39.2