Go to file
2013-03-25 14:46:34 -07:00
gracedemo reckless username change 2012-07-07 14:38:18 -07:00
gracehttp fix bug introduced with systemd compatibility 2013-03-25 13:33:16 -07:00
.travis.yml attempt to fix travis issues 2013-03-25 13:59:39 -07:00
grace.go remove some duplication 2013-03-25 14:39:26 -07:00
readme.md note about systemd compatibility in readme 2013-03-25 14:46:34 -07:00

go.grace Build Status

Package grace provides a library that makes it easy to build socket based servers that can be gracefully terminated & restarted (that is, without dropping any connections).

It provides a convenient API for HTTP servers, especially if you need to listen on multiple ports (for example a secondary internal only admin server). Additionally it is implemented using the same API as systemd providing socket activation compatibility to also provide lazy activation of the server.

Demo HTTP Server with graceful termination and restart: https://github.com/daaku/go.grace/blob/master/gracedemo/demo.go

http level graceful termination and restart: http://godoc.org/github.com/daaku/go.grace/gracehttp

net.Listener level graceful termination and restart: http://godoc.org/github.com/daaku/go.grace