From b6a497c645704350316f50c894a7086ff0405a28 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Mar 2016 18:06:32 +0100 Subject: bank port --- run_bank.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'run_bank.sh') diff --git a/run_bank.sh b/run_bank.sh index 631ea9c..f5f25e2 100755 --- a/run_bank.sh +++ b/run_bank.sh @@ -2,7 +2,15 @@ source $HOME/test_bank_login/bin/activate cd $HOME/bank/TalerBank/ + +bank_port=$(cat $HOME/config/bankport) + +if [[ -z "$bank_port" ]]; then + echo "Port for bank not configured" >&2 + exit 1 +fi + # Since GNUnet ARM sends SIGTERM to # kill services, we want uwsgi to die on that # signal instead of reloading -exec uwsgi --master --die-on-term --socket :8000 --module TalerBank.wsgi +exec uwsgi --master --die-on-term --socket ":$bank_port" --module TalerBank.wsgi -- cgit v1.2.3