Skip to content

Commit 20e8a91

Browse files
committed
Make start-nginx scripts ignore the SIGTERM signal so they do not kill off nginx abruptly.
1 parent 14ccd81 commit 20e8a91

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

bin/start-nginx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
trap "echo start-nginx got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM
4+
35
psmgr=/tmp/nginx-buildpack-wait
46
rm -f $psmgr
57
mkfifo $psmgr

bin/start-nginx-debug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
trap "echo start-nginx got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM
4+
35
psmgr=/tmp/nginx-buildpack-wait
46
rm -f $psmgr
57
mkfifo $psmgr

bin/start-nginx-solo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
trap "echo start-nginx got SIGTERM. Ignoring while nginx shuts down gracefully" SIGTERM
4+
35
psmgr=/tmp/nginx-buildpack-wait
46
rm -f $psmgr
57
mkfifo $psmgr

0 commit comments

Comments
 (0)