blob: 6b7718bc96057254a8e5dd5fe34bfe71b37db7fe [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
19# copy config files to openmme target directly
20cp /opt/mme/config/shared/* /openmme/target/conf/
21
22cd /openmme/target
23export LD_LIBRARY_PATH=/usr/local/lib:./lib
24
25case $APPLICATION in
26 "mme-app")
27 echo "Starting mme-app"
28 echo "conf/mme.json"
29 cat conf/mme.json
30 ./bin/mme-app
31 ;;
32 "s1ap-app")
33 echo "Starting s1ap-app"
34 echo "conf/s1ap.json"
35 cat conf/s1ap.json
36 ./bin/s1ap-app
37 ;;
38 "s6a-app")
39 echo "Starting s6a-app"
40 echo "conf/s6a.json"
41 cat conf/s6a.json
42 echo "conf/s6a_fd.conf"
43 cat conf/s6a_fd.conf
44 ./bin/s6a-app
45 ;;
46 "s11-app")
47 echo "Starting s11-app"
48 echo "conf/s11.json"
49 cat conf/s11.json
50 ./bin/s11-app
51 ;;
52 *)
53 echo "invalid app $APPLICATION"
54 ;;
55esac