mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-19 09:34:38 +00:00
- Explicitly stop uwsgi, celery, daphne, and redis-server on SIGTERM; these are spawned as uwsgi attach-daemons and were not tracked in pids[], causing exit 137 on docker stop - Replace fixed sleep 3 with a polling loop (8 s ceiling) that exits as soon as all processes have stopped - Use pg_ctl stop -m immediate as the postgres force-stop fallback instead of SIGKILL to avoid data corruption - Add _cleanup_done guard to prevent double invocation of cleanup() when the trap fires and the explicit call at script end both execute - Register process names at startup in pid_names[] so crash diagnostics show meaningful names after a process has exited - Suppress the unexpected-exit diagnostic block on normal docker stop - Guard all pgrep-based pids+=() against empty values (nginx, vite, postgres) to prevent empty PID entries corrupting the pids[] array |
||
|---|---|---|
| .. | ||
| init | ||
| tests | ||
| build-dev.sh | ||
| comskip.ini | ||
| DispatcharrBase | ||
| docker-compose.aio.yml | ||
| docker-compose.debug.yml | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| entrypoint.aio.sh | ||
| entrypoint.celery.sh | ||
| entrypoint.sh | ||
| nginx.conf | ||
| uwsgi.debug.ini | ||
| uwsgi.dev.ini | ||
| uwsgi.ini | ||
| uwsgi.modular.ini | ||