Ensure gunicon is pid 1 in docker scripts

This ensures operations like |docker restart| send signials to gunicorn which
will handle them correctly (where as previously bash would just ignore them)
This commit is contained in:
James Lal 2015-02-28 11:51:40 -08:00
Родитель c703d34783
Коммит c74d2feb30
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1,7 +1,9 @@
#! /bin/bash -ex
source /etc/profile.d/treeherder.sh
./docker/generate_test_credentials.py
gunicorn \
# Use exec so pid 1 is now gunicon instead of bash...
exec gunicorn \
-w 5 \
-b 0.0.0.0:8000 \
--timeout 120 \