blob: c739aa628ea9cf5662fbe54e9302999a47c75abd [file] [log] [blame]
#!/bin/bash
# Copyright 2019-present Open Networking Foundation
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
APPLICATION=$1
{{- if .Values.config.coreDump.enabled }}
cp /openmme/target/bin/$APPLICATION /tmp/coredump/
{{- end }}
# copy config files to openmme target directly
cp /opt/mme/config/shared/* /openmme/target/conf/
cd /openmme/target
export LD_LIBRARY_PATH=/usr/local/lib:./lib
case $APPLICATION in
"mme-app")
echo "Starting mme-app"
echo "conf/mme.json"
cat conf/mme.json
./bin/mme-app
;;
"s1ap-app")
echo "Starting s1ap-app"
echo "conf/s1ap.json"
cat conf/s1ap.json
./bin/s1ap-app
;;
"s6a-app")
echo "Starting s6a-app"
echo "conf/s6a.json"
cat conf/s6a.json
echo "conf/s6a_fd.conf"
cat conf/s6a_fd.conf
./bin/s6a-app
;;
"s11-app")
echo "Starting s11-app"
echo "conf/s11.json"
cat conf/s11.json
./bin/s11-app
;;
*)
echo "invalid app $APPLICATION"
;;
esac