Merge PR #4884: Fix standalone execution

This commit is contained in:
Alessio Treglia 2019-08-11 23:42:10 +01:00 committed by Alexander Bezobchuk
parent e4c8bd72b7
commit 8f51fb39cb
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
#4879 Don't terminate the process immediately after startup when run in standalone mode.

View File

@ -89,7 +89,6 @@ func startStandAlone(ctx *Context, appCreator AppCreator) error {
cmn.Exit(err.Error())
}
// wait forever
cmn.TrapSignal(ctx.Logger, func() {
// cleanup
err = svr.Stop()
@ -97,6 +96,10 @@ func startStandAlone(ctx *Context, appCreator AppCreator) error {
cmn.Exit(err.Error())
}
})
// run forever (the node will not be returned)
select {}
return nil
}