Skip to content
Graceful shutdown utility for Golang
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples add .Signals and .Timeout support Dec 4, 2014
Readme.md
gracefully.go move "terminating" log to its own line Dec 27, 2014

Readme.md

go-gracefully

Graceful shutdown utility with hard exit on second signal.

View the docs.

Installation

$ go get github.com/tj/go-gracefully

Example

Typically something like:

w.Start()
gracefully.Timeout = 10 * time.Second
gracefully.Shutdown()
w.Stop()

License

MIT

You can’t perform that action at this time.