do not force exit to let all services shutdown gracefully
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/oklog/run"
|
||||
|
||||
@@ -109,7 +108,6 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
|
||||
natsServer.Shutdown()
|
||||
cancel()
|
||||
os.Exit(1)
|
||||
})
|
||||
|
||||
return gr.Run()
|
||||
|
||||
Reference in New Issue
Block a user