Gracefully stop docker container when it receives SIGTERM (#368)

* add die-on-term option to uwsgi

* exec uwsgi in bootstrap.sh
This commit is contained in:
McKenna Jones
2023-01-07 11:49:11 -07:00
committed by GitHub
parent fee979a371
commit 7b03ceab98
2 changed files with 2 additions and 1 deletions

View File

@@ -22,4 +22,4 @@ if [ "$LD_DISABLE_BACKGROUND_TASKS" != "True" ]; then
fi
# Start uwsgi server
uwsgi --http :$LD_SERVER_PORT uwsgi.ini
exec uwsgi --http :$LD_SERVER_PORT uwsgi.ini

View File

@@ -11,6 +11,7 @@ stats = 127.0.0.1:9191
uid = www-data
gid = www-data
buffer-size = 8192
die-on-term = true
if-env = LD_CONTEXT_PATH
static-map = /%(_)static=static