hard exit when services fail

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg committed 2023-09-21 13:53:18 +02:00
1 parent 2d3133b8a5
commit 1f1aa50c54
33 files changed
+48

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"net/http"
"os"
"time"
"github.com/go-chi/chi/v5"
@@ -154,6 +155,7 @@ func Server(cfg *config.Config) *cli.Command {
Msg("Shutting down server")
cancel()
os.Exit(1)
})
}