Library to write graceful shutdown / upgrade service.
$ cabal update
$ cabal install graceful
A graceful application can be controlled with signals. The master process supports the following signals
- TERM/INT
- fast shutdown
- QUIT
- graceful shutdown
- HUP
- restart workers
- starting new worker processes
- graceful shutdown old worker processes
- restart workers
- USR2
- upgrading an executable file (starting new master & worker processes)
- Send USR2
- Send QUIT to old process