From 92976a08e87187317178fa0e37a23f8f4ba0d0bf Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Thu, 29 Apr 2021 10:44:14 +0200 Subject: Fix hv-ves configuration loading from envs Signed-off-by: Bartosz Gardziejewski Change-Id: I53c4cec9803cc2f17a8be92e159b5d64130b83af Issue-ID: DCAEGEN2-2749 --- sources/hv-collector-main/src/main/docker/entry.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} -- cgit 1.2.3-korg