diff --git a/bin/start-nginx b/bin/start-nginx index dbf19062..cce0f7cd 100755 --- a/bin/start-nginx +++ b/bin/start-nginx @@ -1,5 +1,7 @@ #!/usr/bin/env bash +trap "echo start-nginx got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM + psmgr=/tmp/nginx-buildpack-wait rm -f $psmgr mkfifo $psmgr diff --git a/bin/start-nginx-debug b/bin/start-nginx-debug index 8a6b0912..e9af51fe 100755 --- a/bin/start-nginx-debug +++ b/bin/start-nginx-debug @@ -1,5 +1,7 @@ #!/usr/bin/env bash +trap "echo start-nginx-debug got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM + psmgr=/tmp/nginx-buildpack-wait rm -f $psmgr mkfifo $psmgr diff --git a/bin/start-nginx-solo b/bin/start-nginx-solo index f8eccd99..b45d25cb 100755 --- a/bin/start-nginx-solo +++ b/bin/start-nginx-solo @@ -1,5 +1,7 @@ #!/usr/bin/env bash +trap "echo start-nginx-solo got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM + psmgr=/tmp/nginx-buildpack-wait rm -f $psmgr mkfifo $psmgr