faraday: intercept shutdown signals

This commit is contained in:
Oliver Gugger 2020-05-04 17:47:43 +02:00
parent c924402d15
commit 0d3293f2c0
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -40,6 +40,8 @@ func Main() error {
},
)
// Catch intercept signals, then start the server.
signal.Intercept()
if err := server.Start(); err != nil {
return err
}