blob: f1b937c4b27b52d52117f7621e7fd68634c1be03 [file] [log] [blame]
Hyunsun Moon636e17d2019-07-03 12:52:15 -05001#!/bin/bash
2#
3# Copyright 2019-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17APPLICATION=$1
18
Hyunsun Moonec0b44d2020-01-10 15:50:53 -070019{{- if .Values.config.coreDump.enabled }}
20cp /openmme/target/bin/$APPLICATION /tmp/coredump/
21{{- end }}
22
Hyunsun Moon636e17d2019-07-03 12:52:15 -050023# copy config files to openmme target directly
24cp /opt/mme/config/shared/* /openmme/target/conf/
25
26cd /openmme/target
27export LD_LIBRARY_PATH=/usr/local/lib:./lib
28
29case $APPLICATION in
30 "mme-app")
31 echo "Starting mme-app"
32 echo "conf/mme.json"
33 cat conf/mme.json
34 ./bin/mme-app
35 ;;
36 "s1ap-app")
37 echo "Starting s1ap-app"
38 echo "conf/s1ap.json"
39 cat conf/s1ap.json
40 ./bin/s1ap-app
41 ;;
42 "s6a-app")
43 echo "Starting s6a-app"
44 echo "conf/s6a.json"
45 cat conf/s6a.json
46 echo "conf/s6a_fd.conf"
47 cat conf/s6a_fd.conf
48 ./bin/s6a-app
49 ;;
50 "s11-app")
51 echo "Starting s11-app"
52 echo "conf/s11.json"
53 cat conf/s11.json
54 ./bin/s11-app
55 ;;
56 *)
57 echo "invalid app $APPLICATION"
58 ;;
59esac