blob: c739aa628ea9cf5662fbe54e9302999a47c75abd [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/bin/bash
2
3# Copyright 2019-present Open Networking Foundation
4#
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
6
7APPLICATION=$1
8
9{{- if .Values.config.coreDump.enabled }}
10cp /openmme/target/bin/$APPLICATION /tmp/coredump/
11{{- end }}
12
13# copy config files to openmme target directly
14cp /opt/mme/config/shared/* /openmme/target/conf/
15
16cd /openmme/target
17export LD_LIBRARY_PATH=/usr/local/lib:./lib
18
19case $APPLICATION in
20 "mme-app")
21 echo "Starting mme-app"
22 echo "conf/mme.json"
23 cat conf/mme.json
24 ./bin/mme-app
25 ;;
26 "s1ap-app")
27 echo "Starting s1ap-app"
28 echo "conf/s1ap.json"
29 cat conf/s1ap.json
30 ./bin/s1ap-app
31 ;;
32 "s6a-app")
33 echo "Starting s6a-app"
34 echo "conf/s6a.json"
35 cat conf/s6a.json
36 echo "conf/s6a_fd.conf"
37 cat conf/s6a_fd.conf
38 ./bin/s6a-app
39 ;;
40 "s11-app")
41 echo "Starting s11-app"
42 echo "conf/s11.json"
43 cat conf/s11.json
44 ./bin/s11-app
45 ;;
46 *)
47 echo "invalid app $APPLICATION"
48 ;;
49esac