Skip to content
Snippets Groups Projects
Unverified Commit 6657de79 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

Start server processes

parent 342dd2e1
No related branches found
No related tags found
No related merge requests found
...@@ -135,8 +135,17 @@ func Serve(cmd *cobra.Command, args []string) { ...@@ -135,8 +135,17 @@ func Serve(cmd *cobra.Command, args []string) {
log.Fatalf("Failed to load server configuration: %s.", err) log.Fatalf("Failed to load server configuration: %s.", err)
os.Exit(1) os.Exit(1)
} }
_, err = newCore.NewGateway(serverConfig) serverProcess, err := newCore.NewGateway(serverConfig)
if err != nil {
log.Fatalf("Failed to load servers: %s.", err)
os.Exit(1)
}
err = serverProcess.Start()
if err != nil {
log.Fatalf("Failed to start servers: %s.", err)
os.Exit(1)
}
<- serverProcess.StopEventChannel()
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment