diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-10-24 10:02:58 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-10-24 10:02:58 +0000 |
commit | 1417a48bd4aecfb5e182d6c7b81960e3d7232309 (patch) | |
tree | 256cff43ab30ea2c5efbe31c9d1ad7eb316eefea /metrics-proxy | |
parent | fa29e75a71b49fc3925349457bb43de03b6d60d8 (diff) |
* apply new common bootstrap
* remove now-duplicated code
* prefer using ${VESPA_HOME} environment variable
Diffstat (limited to 'metrics-proxy')
-rw-r--r-- | metrics-proxy/src/main/sh/start-telegraf.sh | 3 | ||||
-rw-r--r-- | metrics-proxy/src/main/sh/stop-telegraf.sh | 3 |
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" |