commit b6a497c645704350316f50c894a7086ff0405a28 parent 6417905ae624b433038ed18dad30d75aac446a79 Author: Florian Dold <florian.dold@gmail.com> Date: Tue, 1 Mar 2016 18:06:32 +0100 bank port Diffstat:
| M | run_bank.sh | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git 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