mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Consider admins' enabled value for stordb ShouldRun()
This commit is contained in:
committed by
Dan Christian Bogos
parent
6826f13cc5
commit
68152ecc62
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user