summaryrefslogtreecommitdiffstats
path: root/configd
diff options
context:
space:
mode:
Diffstat (limited to 'configd')
-rw-r--r--configd/src/apps/sentinel/service.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp
index 16ca132c29d..e9225325e27 100644
--- a/configd/src/apps/sentinel/service.cpp
+++ b/configd/src/apps/sentinel/service.cpp
@@ -326,6 +326,10 @@ Service::runChild()
fcntl(n, F_SETFD, FD_CLOEXEC);
}
+ for (const auto &envvar : _config->environ) {
+ setenv(envvar.varname.c_str(), envvar.varvalue.c_str(), 1);
+ }
+
// Set up environment
setenv("VESPA_SERVICE_NAME", _config->name.c_str(), 1);
setenv("VESPA_CONFIG_ID", _config->id.c_str(), 1);