Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 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 |