mirror of
https://github.com/rommapp/romm.git
synced 2026-03-03 02:57:01 +00:00
Enhance Gunicorn startup process by cleaning up leftover PID files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user