diff options
-rw-r--r-- | cmd/gitaly/main.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go index 0f04a2b5d..765d729ca 100644 --- a/cmd/gitaly/main.go +++ b/cmd/gitaly/main.go @@ -105,8 +105,13 @@ func main() { if err != nil { log.Fatal(err) } - log.WithError(run(cfg)).Error("shutting down") - log.Info("Gitaly stopped") + + if err := run(cfg); err != nil { + log.WithError(err).Error("Gitaly shutdown") + os.Exit(1) + } + + log.Info("Gitaly shutdown") } func configure(configPath string) (config.Cfg, error) { |