summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/env.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/env.cpp')
-rw-r--r--configd/src/apps/sentinel/env.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/env.cpp b/configd/src/apps/sentinel/env.cpp
index 44942080791..f679a3d47c7 100644
--- a/configd/src/apps/sentinel/env.cpp
+++ b/configd/src/apps/sentinel/env.cpp
@@ -55,6 +55,8 @@ void Env::boot(const std::string &configId) {
_cfgOwner.subscribe(configId, CONFIG_TIMEOUT_MS);
_modelOwner.start(CONFIG_TIMEOUT_MS, true);
// subscribe() should throw if something is not OK
+ vespalib::SignalHandler::TERM.hook();
+ vespalib::SignalHandler::INT.hook();
Connectivity checker;
for (int retry = 0; retry < maxConnectivityRetries; ++retry) {
bool changed = _cfgOwner.checkForConfigUpdate();