aboutsummaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-main
diff options
context:
space:
mode:
Diffstat (limited to 'sources/hv-collector-main')
-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}