From e31f3ac06a690eb98cf1723893237d96a0037ae8 Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 31 Dec 2025 11:24:14 +0000 Subject: [PATCH] Enhance Gunicorn startup process by cleaning up leftover PID files --- docker/init_scripts/init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/init_scripts/init b/docker/init_scripts/init index a1f5421ae..4a55d65b4 100755 --- a/docker/init_scripts/init +++ b/docker/init_scripts/init @@ -90,8 +90,9 @@ wait_for_gunicorn_socket() { # function that runs or main process and creates a corresponding PID file, start_bin_gunicorn() { - # cleanup potentially leftover socket + # cleanup potentially leftover socket and pid files rm /tmp/gunicorn.sock -f + rm /tmp/gunicorn.pid -f rm /tmp/gunicorn_startup.log -f # commands to start our main application and store its PID to check for crashes