From e02b65aa65093f183a0aacb82e88ef7e434c0b74 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 29 May 2026 19:39:52 +0900 Subject: fix(packaging): add notification-fd to dispatch-s6 loggers The dispatch-{api,frontend}-log run scripts invoke `s6-log -d3` (send a readiness notification on fd 3), but the service dirs lacked a notification-fd file, so s6-supervise never opened fd 3. s6-log aborted with "invalid notification fd: Bad file descriptor" (exit 100) and crash-looped, so nothing drained the producer's stdout pipe. The API then filled its 64KB stdout pipe and blocked in write() before reaching listen(), so port 18390 never opened and the frontend could not reach the backend (the frontend survived only because it logs almost nothing). Add notification-fd=3 to both logger service dirs and install them via PKGBUILD, matching every other logger on the system. This also makes s6-rc bring the logger up ready-first, preventing the pipe-fill race. --- packaging/s6/dispatch-api-log/notification-fd | 1 + packaging/s6/dispatch-frontend-log/notification-fd | 1 + 2 files changed, 2 insertions(+) create mode 100644 packaging/s6/dispatch-api-log/notification-fd create mode 100644 packaging/s6/dispatch-frontend-log/notification-fd (limited to 'packaging/s6') diff --git a/packaging/s6/dispatch-api-log/notification-fd b/packaging/s6/dispatch-api-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/packaging/s6/dispatch-api-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/packaging/s6/dispatch-frontend-log/notification-fd b/packaging/s6/dispatch-frontend-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/packaging/s6/dispatch-frontend-log/notification-fd @@ -0,0 +1 @@ +3 -- cgit v1.2.3