hard exit when services fail

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-09-19 14:25:22 +02:00
parent 2d3133b8a5
commit 1f1aa50c54
33 changed files with 48 additions and 0 deletions
+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)
})
}