Gracefully stop the server on signal received
SIGKILL needs to happen right away, but the signals Gitaly handles can stop gracefully. This makes sure no new connections are accepted while the current requests are being finished.
Seen at: https://github.com/fabiolb/fabio/blob/master/proxy/grpc_handler.go#L38 and seemed like a good idea
Edited by Jason Plum