summaryrefslogtreecommitdiffstats
path: root/metrics-proxy
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-10-25 17:37:05 +0200
committerGitHub <noreply@github.com>2022-10-25 17:37:05 +0200
commitf73ba9276acf8b1032d1c015c434bf544317fad1 (patch)
treeb7b02d5d5ba5e682cc5731e0a05e17efc21930ed /metrics-proxy
parent373c68b2955c8a9ef77daa4e38622eec274b54ea (diff)
parent1417a48bd4aecfb5e182d6c7b81960e3d7232309 (diff)
Merge pull request #24548 from vespa-engine/arnej/common-handle-env-root
* apply new common bootstrap
Diffstat (limited to 'metrics-proxy')
-rw-r--r--metrics-proxy/src/main/sh/start-telegraf.sh3
-rw-r--r--metrics-proxy/src/main/sh/stop-telegraf.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/metrics-proxy/src/main/sh/start-telegraf.sh b/metrics-proxy/src/main/sh/start-telegraf.sh
index 0cdfd784367..60677e9f065 100644
--- a/metrics-proxy/src/main/sh/start-telegraf.sh
+++ b/metrics-proxy/src/main/sh/start-telegraf.sh
@@ -72,6 +72,9 @@ findhost () {
findroot
findhost
+ROOT=${VESPA_HOME%/}
+export ROOT
+
# END environment bootstrap section
fixddir () {
diff --git a/metrics-proxy/src/main/sh/stop-telegraf.sh b/metrics-proxy/src/main/sh/stop-telegraf.sh
index 3fb8ed2fe5b..595e4068ee5 100644
--- a/metrics-proxy/src/main/sh/stop-telegraf.sh
+++ b/metrics-proxy/src/main/sh/stop-telegraf.sh
@@ -72,6 +72,9 @@ findhost () {
findroot
findhost
+ROOT=${VESPA_HOME%/}
+export ROOT
+
# END environment bootstrap section
pidfile="${VESPA_HOME}/var/run/telegraf.pid"