summaryrefslogtreecommitdiff
path: root/src/exchange/test_taler_exchange_httpd_restart.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-13 14:55:58 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-13 14:55:58 +0100
commit9c20b62eb965c2b8a9e94f56283d5671e37bc447 (patch)
treecda1596854b194e6686459ecfa0aed186c5a10aa /src/exchange/test_taler_exchange_httpd_restart.sh
parent8d5f42fe0cff134120e462c7e905403f7d38b9d6 (diff)
downloadexchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.tar.gz
exchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.tar.bz2
exchange-9c20b62eb965c2b8a9e94f56283d5671e37bc447.zip
database setup logic is now external to httpd
Diffstat (limited to 'src/exchange/test_taler_exchange_httpd_restart.sh')
-rwxr-xr-xsrc/exchange/test_taler_exchange_httpd_restart.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/test_taler_exchange_httpd_restart.sh b/src/exchange/test_taler_exchange_httpd_restart.sh
index f7d7a305..a8976fb0 100755
--- a/src/exchange/test_taler_exchange_httpd_restart.sh
+++ b/src/exchange/test_taler_exchange_httpd_restart.sh
@@ -51,12 +51,14 @@ PREFIX=
# Uncomment this line to run with valgrind...
# PREFIX="valgrind --trace-children=yes --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p"
+# Setup database
+taler-exchange-dbinit -c test_taler_exchange_unix.conf &> /dev/null
# Setup keys.
taler-exchange-keyup -c test_taler_exchange_unix.conf || exit 1
# Setup wire accounts.
taler-exchange-wire -c test_taler_exchange_unix.conf > /dev/null || exit 1
# Run Exchange HTTPD (in background)
-$PREFIX taler-exchange-httpd -c test_taler_exchange_unix.conf -i 2> test-exchange.log &
+$PREFIX taler-exchange-httpd -c test_taler_exchange_unix.conf 2> test-exchange.log &
# Where should we be bound to?
UNIXPATH=`taler-config -s exchange -f -o UNIXPATH`