badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
| 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 6 | |
| 7 | APPLICATION=$1 |
| 8 | |
| 9 | {{- if .Values.config.coreDump.enabled }} |
| 10 | cp /openmme/target/bin/$APPLICATION /tmp/coredump/ |
| 11 | {{- end }} |
| 12 | |
| 13 | # copy config files to openmme target directly |
| 14 | cp /opt/mme/config/shared/* /openmme/target/conf/ |
| 15 | |
| 16 | cd /openmme/target |
| 17 | export LD_LIBRARY_PATH=/usr/local/lib:./lib |
| 18 | |
| 19 | case $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 | ;; |
| 49 | esac |