Terminate upon receipt of SIGTERM
Review Request #10042 — Created June 27, 2018 and submitted — Latest diff uploaded
We currently don't handle graceful shutdown, which is the idiomatic way
of notifying processes that they should. This patch adds support for
that.
- Ran
go fmt ./...
. - Ran
go test ./...
. - Ran
kill -sTERM (pgrep rb-gateway)
; the process terminated cleanly.