hard exit when services fail

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-09-21 13:53:18 +02:00
parent 2d3133b8a5
commit 1f1aa50c54
33 changed files with 48 additions and 0 deletions
+2
View File
@@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"fmt"
"os"
"github.com/oklog/run"
@@ -113,6 +114,7 @@ func Server(cfg *config.Config) *cli.Command {
natsServer.Shutdown()
cancel()
os.Exit(1)
})
return gr.Run()