Remove responder from the list of services managed by the ServiceManager

Since Responder can be started/reloaded/shut down through RALs, there is no need for ServiceManager to also be responsible for it. It also solves an issue where the RALs service would not be properly started because the manager had already started Responder before, and when RALs would try to do it as well, it returned with a 'service already running' error.
This commit is contained in:
ionutboangiu
2023-03-22 12:11:47 -04:00
committed by Dan Christian Bogos
parent 0473e66555
commit 3fac828218

View File

@@ -506,7 +506,7 @@ func main() {
anz := services.NewAnalyzerService(cfg, server, exitChan, internalAnalyzerSChan)
srvManager.AddServices(attrS, chrS, tS, stS, reS, supS, schS, rals,
rals.GetResponder(), apiSv1, apiSv2, cdrS, smg,
apiSv1, apiSv2, cdrS, smg,
services.NewEventReaderService(cfg, filterSChan, exitChan, connManager),
services.NewDNSAgent(cfg, filterSChan, exitChan, connManager),
services.NewFreeswitchAgent(cfg, exitChan, connManager),