forked from heroku/heroku-buildpack-nginx
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch nginx so it does graceful shutdown on SIGTERM and fast shutdown…
… on SIGQUIT. Fixes heroku#31
- Loading branch information
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
scripts/patchfiles/default/0001-Custom-Terminate-Signal.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/core/ngx_config.h 2020-05-23 04:21:07.000000000 +0000 | ||
+++ src/core/ngx_config.h 2020-05-23 04:15:17.000000000 +0000 | ||
@@ -56,9 +56,8 @@ | ||
|
||
#define ngx_random random | ||
|
||
-/* TODO: #ifndef */ | ||
-#define NGX_SHUTDOWN_SIGNAL QUIT | ||
-#define NGX_TERMINATE_SIGNAL TERM | ||
+#define NGX_SHUTDOWN_SIGNAL TERM | ||
+#define NGX_TERMINATE_SIGNAL QUIT | ||
#define NGX_NOACCEPT_SIGNAL WINCH | ||
#define NGX_RECONFIGURE_SIGNAL HUP |