7 function handle_sigterm() {
8 if [[ ${pid} -ge 0 ]]; then
9 echo "Caught SIGTERM signal. Redirecting to process with pid=${pid}"
13 exit 143 # 128 + 15 -- SIGTERM
15 trap "handle_sigterm" SIGTERM
17 java ${JAVA_OPTS:-} -cp '*:' org.onap.dcae.collectors.veshv.main.MainKt $@ &
19 echo "Service started with pid=${pid}"