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
go fmt ./....
go test ./....
kill -sTERM (pgrep rb-gateway); the process terminated cleanly.