coreos/fleet — pull request #512 by jonboulle (2014-05-30 01:44:40+00:00)
Title: fix(server): be more careful about shutting down

Server start-up has become a relatively complex process and there are now
various opportunities for it to block before the signal handlers were set up
appropriately. This makes it awkward to cleanly shut down fleet. This change
registers the signal handlers early in the process and makes several changes
to the initialization to facilitate this.