Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 1 | #!/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 | |
| 17 | APPLICATION=$1 |
| 18 | |
Hyunsun Moon | ec0b44d | 2020-01-10 15:50:53 -0700 | [diff] [blame] | 19 | {{- if .Values.config.coreDump.enabled }} |
| 20 | cp /openmme/target/bin/$APPLICATION /tmp/coredump/ |
| 21 | {{- end }} |
| 22 | |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 23 | # copy config files to openmme target directly |
| 24 | cp /opt/mme/config/shared/* /openmme/target/conf/ |
| 25 | |
| 26 | cd /openmme/target |
| 27 | export LD_LIBRARY_PATH=/usr/local/lib:./lib |
| 28 | |
| 29 | case $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 | ;; |
| 59 | esac |