hard exit when services fail
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -3,6 +3,7 @@ package command
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/cs3org/reva/v2/pkg/events"
|
||||
"github.com/cs3org/reva/v2/pkg/events/stream"
|
||||
@@ -59,6 +60,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
Err(err).
|
||||
Msg("Shutting down server")
|
||||
cancel()
|
||||
os.Exit(1)
|
||||
})
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user