Skip to content

Commit

Permalink
Make start-nginx scripts ignore the SIGTERM signal so they do not kil…
Browse files Browse the repository at this point in the history
…l off nginx abruptly.
  • Loading branch information
syastrov committed Aug 6, 2021
1 parent 14ccd81 commit 5bce40b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/start-nginx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions bin/start-nginx-debug
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions bin/start-nginx-solo
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5bce40b

Please sign in to comment.