properly shut down service on kill signal

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-06-13 11:04:06 +00:00
parent 249f90fa3d
commit 176b560274
+1
View File
@@ -90,6 +90,7 @@ func Server(cfg *config.Config) *cli.Command {
}
gr.Add(debugServer.ListenAndServe, func(_ error) {
_ = debugServer.Shutdown(ctx)
cancel()
})