From ee30500c2f2aacd20d9ebcadb238fabe037fa835 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 18 Jun 2026 08:58:45 +0000 Subject: [PATCH] Run supervisord under tini to silence 'reaped unknown pid' log noise The standalone container starts postgres/redis/nginx/rabbitmq directly in the entrypoint and then execs supervisord as PID 1. As PID 1, supervisord inherits every orphaned/reparented child of those daemons (and grandchildren of its own managed node services) and logs each reap as a noisy 'reaped unknown pid ...' INFO message. Install tini and exec supervisord under it so tini becomes PID 1 and silently reaps orphaned processes, eliminating the log spam without changing service behavior. Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-4-8 --- build/.docker/standalone.bake.Dockerfile | 2 +- build/scripts/standalone/entrypoint.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/.docker/standalone.bake.Dockerfile b/build/.docker/standalone.bake.Dockerfile index 3e4b48e3d9..0dbb9b9c18 100644 --- a/build/.docker/standalone.bake.Dockerfile +++ b/build/.docker/standalone.bake.Dockerfile @@ -30,7 +30,7 @@ RUN apt-get -y update && \ ACCEPT_EULA=Y apt-get -yq install \ postgresql postgresql-client redis-server rabbitmq-server \ nginx sudo gdb nginx-extras supervisor jq util-linux \ - netcat-openbsd xxd openssl && \ + netcat-openbsd xxd openssl tini && \ rm -rf /var/lib/apt/lists/* # Create the 'ds' user that is required by OnlyOffice scripts diff --git a/build/scripts/standalone/entrypoint.sh b/build/scripts/standalone/entrypoint.sh index 7fea010373..85c69bbf49 100644 --- a/build/scripts/standalone/entrypoint.sh +++ b/build/scripts/standalone/entrypoint.sh @@ -448,4 +448,9 @@ fi # -------------------------------------------------------------------- [ -n "$JWT_MESSAGE" ] && echo "$JWT_MESSAGE" -exec /usr/bin/supervisord +# Hand off to supervisord under tini. tini becomes PID 1 and acts as the init +# zombie-reaper: it silently reaps orphaned children of the bundled daemons +# (postgres, redis, nginx, rabbitmq) and of the node services. Without it, +# supervisord would run as PID 1 and log every reaped orphan as a noisy +# "reaped unknown pid" INFO message. +exec /usr/bin/tini -- /usr/bin/supervisord