Run supervisord with exec to replace pid 1 process

This commit is contained in:
Doro Wu 2015-06-29 18:42:28 +08:00
parent f27846b357
commit c05133f22d

View file

@ -11,4 +11,4 @@ echo "ubuntu:$PASS" | chpasswd
cd /web && ./run.py > /var/log/web.log 2>&1 &
nginx -c /etc/nginx/nginx.conf
/usr/bin/supervisord -n
exec /usr/bin/supervisord -n