[PATCH 3/4] main: signal readiness to system before entering main loop
Martin Hundebøll <[email protected]> Fri, 10 Oct 2025 11:20:04 +0200
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
The systemd watchdog protocol requires the service to signal readiness
before maintaining the watchdog. Do this by sending READY=1 on the
notification socket before entering the main loop, from where the
watchdog is maintained.
---
ell/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ell/main.c b/ell/main.c
index be9d96377f07..d2d8ca9e0c52 100644
--- a/ell/main.c
+++ b/ell/main.c
@@ -500,6 +500,7 @@ LIB_EXPORT int l_main_run(void)
if (unlikely(epoll_running))
return EXIT_FAILURE;
+ sd_notify("READY=1");
epoll_running = true;
for (;;) {
--
2.51.0