Enhance Gunicorn startup process by cleaning up leftover PID files

This commit is contained in:
zurdi
2025-12-31 11:24:14 +00:00
parent 0ae5e73dd4
commit e31f3ac06a

View File

@@ -90,8 +90,9 @@ wait_for_gunicorn_socket() {
# function that runs or main process and creates a corresponding PID file, # function that runs or main process and creates a corresponding PID file,
start_bin_gunicorn() { start_bin_gunicorn() {
# cleanup potentially leftover socket # cleanup potentially leftover socket and pid files
rm /tmp/gunicorn.sock -f rm /tmp/gunicorn.sock -f
rm /tmp/gunicorn.pid -f
rm /tmp/gunicorn_startup.log -f rm /tmp/gunicorn_startup.log -f
# commands to start our main application and store its PID to check for crashes # commands to start our main application and store its PID to check for crashes