Implement start/stop/status methods for servmanager + tests

This commit is contained in:
ionutboangiu
2022-10-19 18:59:34 +03:00
committed by Dan Christian Bogos
parent ad7bd111d1
commit 60a4da69e0
35 changed files with 495 additions and 37 deletions

View File

@@ -47,7 +47,7 @@ func NewCGREngine(cfg *config.CGRConfig, cM *engine.ConnManager, shdWg *sync.Wai
cM: cM, // connection manager
caps: caps, // caps is used to limit RPC CPS
shdWg: shdWg, // wait for shutdown
srvManager: servmanager.NewServiceManager(shdWg, cM, cfg.GetReloadChan()),
srvManager: servmanager.NewServiceManager(shdWg, cM, cfg),
server: server, // Rpc/http server
srvDep: map[string]*sync.WaitGroup{
utils.AnalyzerS: new(sync.WaitGroup),