aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configd/src/apps/sentinel/service.cpp5
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());