From: Michael Tremer Date: Sun, 29 Jan 2023 21:53:19 +0000 (+0000) Subject: networkd: Enable the service watchdog X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2316e448ad4353964779b4c31edfe20b96ea4f;p=network.git networkd: Enable the service watchdog Signed-off-by: Michael Tremer --- 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; }