mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-25 18:40:06 -04:00
Archive container reaps its zombie processes (#837)
The archive service is PID 1 in its container and never reaps orphans. check_output kills each command's process group, so every archive leaves chrome, cat, and node grandchildren behind as zombies. A long-running container accumulated hundreds of them, counting against its PID limit. init: true runs tini as PID 1, matching the web container. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c6613dfee0
commit
06e35e1095
1 changed files with 4 additions and 0 deletions
|
|
@ -66,6 +66,10 @@ services:
|
|||
- './docker/archive/main.py:/app/main.py'
|
||||
ports:
|
||||
- '8083:8080'
|
||||
# The Sanic app is PID 1 and reaps nothing; check_output kills each command's process group,
|
||||
# and the killed grandchildren (chrome, cat, node) are orphaned to it as zombies (several per
|
||||
# archive). init runs tini as PID 1 to reap them.
|
||||
init: true
|
||||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8080/' ]
|
||||
interval: 2m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue