Added GlobalVarS as service to manage the reload for the global variables

This commit is contained in:
Trial97
2020-10-16 11:41:07 +03:00
committed by Dan Christian Bogos
parent e0e9190abf
commit 616f7b283c
28 changed files with 599 additions and 390 deletions

View File

@@ -251,6 +251,8 @@ func (srvMngr *ServiceManager) handleReload() {
go srvMngr.reloadService(utils.SIPAgent)
case <-srvMngr.GetConfig().GetReloadChan(config.DispatcherHJson):
go srvMngr.reloadService(utils.DispatcherH)
case <-srvMngr.GetConfig().GetReloadChan(config.HTTP_JSN):
go srvMngr.reloadService(utils.GlobalVarS)
}
// handle RPC server
}