aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-04-29 10:44:14 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-04-29 10:53:49 +0200
commit92976a08e87187317178fa0e37a23f8f4ba0d0bf (patch)
treef26d7ee150b90bb960bdabdc3c0addba2e282198
parent2a0107d7ecce0dcb3b525d40e8bbb276f3b82da0 (diff)
Fix hv-ves configuration loading from envs
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I53c4cec9803cc2f17a8be92e159b5d64130b83af Issue-ID: DCAEGEN2-2749
-rwxr-xr-xsources/hv-collector-main/src/main/docker/entry.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/hv-collector-main/src/main/docker/entry.sh b/sources/hv-collector-main/src/main/docker/entry.sh
index 6bac5afe..ede7a240 100755
--- a/sources/hv-collector-main/src/main/docker/entry.sh
+++ b/sources/hv-collector-main/src/main/docker/entry.sh
@@ -10,8 +10,9 @@ handle_sigterm() {
fi
exit 143 # 128 + 15 -- SIGTERM
}
+
trap "handle_sigterm" TERM
-java ${JAVA_OPTS} -cp '*:' org.onap.dcae.collectors.veshv.main.MainKt "$@" &
+java ${JAVA_OPTS} -cp '*:' org.onap.dcae.collectors.veshv.main.MainKt $@ &
pid=$!
echo "Service started with pid=${pid}"
wait ${pid}