From c05133f22d8f6738d97229c341a2baace2b0ca9f Mon Sep 17 00:00:00 2001 From: Doro Wu Date: Mon, 29 Jun 2015 18:42:28 +0800 Subject: [PATCH] Run supervisord with exec to replace pid 1 process --- startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 8beac11..3580a77 100755 --- a/startup.sh +++ b/startup.sh @@ -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