mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-25 05:28:20 -05:00
do not force exit to let all services shutdown gracefully
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -3,7 +3,6 @@ package command
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/oklog/run"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config/configlog"
|
||||
@@ -74,7 +73,6 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
Str("server", "http").
|
||||
Msg("shutting down server")
|
||||
cancel()
|
||||
os.Exit(1)
|
||||
})
|
||||
|
||||
// prepare a gRPC server and add it to the group run.
|
||||
@@ -93,7 +91,6 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
Str("server", "grpc").
|
||||
Msg("shutting down server")
|
||||
cancel()
|
||||
os.Exit(1)
|
||||
})
|
||||
|
||||
// prepare a debug server and add it to the group run.
|
||||
|
||||
Reference in New Issue
Block a user