diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-12-07 14:51:22 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-12-08 12:08:11 +0000 |
commit | 5397b656a350bf009c5a04e40a50f30d5d8ed406 (patch) | |
tree | cfd223e16cf93184721fc69673842e7808a3815d /configd | |
parent | b63e8fcf5afcc0cc00ee07f2155c62d318849258 (diff) |
also apply on reconfigure
Diffstat (limited to 'configd')
-rw-r--r-- | configd/src/apps/sentinel/service.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp index a18bc4da3e5..ad9d9c70d92 100644 --- a/configd/src/apps/sentinel/service.cpp +++ b/configd/src/apps/sentinel/service.cpp @@ -74,6 +74,11 @@ Service::reconfigure(const SentinelConfig::Service& config) delete _config; _config = new SentinelConfig::Service(config); + for (const auto &logctl : _config->logctl) { + const auto cspec = _config->name + ":" + logctl.componentSpec; + const auto lspec = logctl.levelsModSpec; + justRunLogctl(cspec.c_str(), lspec.c_str()); + } if ((_state == READY) || (_state == FINISHED) || (_state == RESTARTING)) { if (_isAutomatic) { LOG(debug, "%s: Restarting due to new config", name().c_str()); |