This commit is contained in:
Naitik Shah 2013-10-24 12:33:05 -07:00
parent 9aca7f00c4
commit e79c66960f

View File

@ -102,9 +102,8 @@ func (a *App) Wait() error {
} }
} }
// Serve will serve the given pairs of addresses and listeners and // Serve will serve the given http.Servers and will monitor for signals
// will monitor for signals allowing for graceful termination (SIGTERM) // allowing for graceful termination (SIGTERM) or restart (SIGUSR2).
// or restart (SIGUSR2).
func Serve(servers ...*http.Server) error { func Serve(servers ...*http.Server) error {
app := &App{Servers: servers} app := &App{Servers: servers}
inherited, err := app.Listen() inherited, err := app.Listen()