The source project of this merge request has been removed.
Add graceful shutdown to gitlab-workhorse
Introduces a new dependency: gopkg.in/tylerb/graceful.v1
and uses it to manage graceful shutdown. Now when SIGINT or SIGTERM is sent, it is intercepted. The TCP listener is closed, and we give existing connections up to ten seconds to finish cleanly before forcing them to terminate.
Closes #70 (moved)