summaryrefslogtreecommitdiffstats
path: root/src/orchestrator/cmd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/orchestrator/cmd/main.go')
-rw-r--r--src/orchestrator/cmd/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go
index 001903a7..7f258bbf 100644
--- a/src/orchestrator/cmd/main.go
+++ b/src/orchestrator/cmd/main.go
@@ -28,6 +28,8 @@ import (
"github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/config"
contextDb "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/contextdb"
"github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db"
+ "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/rpc"
+ "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module"
)
func main() {
@@ -56,12 +58,15 @@ func main() {
Addr: ":" + config.GetConfiguration().ServicePort,
}
+ module.NewControllerClient().InitControllers()
+
connectionsClose := make(chan struct{})
go func() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
httpServer.Shutdown(context.Background())
+ rpc.CloseAllRpcConn()
close(connectionsClose)
}()