Consider admins' enabled value for stordb ShouldRun()

This commit is contained in:
ionutboangiu
2023-11-17 04:28:14 -05:00
committed by Dan Christian Bogos
parent 6826f13cc5
commit 68152ecc62

View File

@@ -151,7 +151,7 @@ func (db *StorDBService) ServiceName() string {
// ShouldRun returns if the service should be running
func (db *StorDBService) ShouldRun() bool {
return db.cfg.CdrsCfg().Enabled
return db.cfg.CdrsCfg().Enabled || db.cfg.AdminSCfg().Enabled
}
// RegisterSyncChan used by dependent subsystems to register a chanel to reload only the storDB(thread safe)