diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-28 17:54:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-28 17:54:00 +0100 |
commit | 3ea15f2e77ae11ca0052ae9bf9e6b33d7ea19c9f (patch) | |
tree | c6228117642275ea976e6f432e139f22e0796ea3 /src | |
parent | 8ee6d2a6c3c43c9a720814155f070f7463b08cbe (diff) | |
download | exchange-3ea15f2e77ae11ca0052ae9bf9e6b33d7ea19c9f.tar.xz |
add code to launch taler-merchant-wirewatch
Diffstat (limited to 'src')
-rwxr-xr-x | src/testing/taler-unified-setup.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh index 3910ab7ab..03fce2214 100755 --- a/src/testing/taler-unified-setup.sh +++ b/src/testing/taler-unified-setup.sh @@ -77,6 +77,7 @@ START_TRANSFER=0 START_WIREWATCH=0 START_DEPOSITCHECK=0 START_MERCHANT_EXCHANGE=0 +START_MERCHANT_WIREWATCH=0 USE_ACCOUNT="exchange-account-1" USE_VALGRIND="" WIRE_DOMAIN="x-taler-bank" @@ -85,7 +86,7 @@ LOGLEVEL="DEBUG" DEFAULT_SLEEP="0.2" # Parse command-line options -while getopts ':abc:d:DeEfghkL:mMnr:stu:vwW' OPTION; do +while getopts ':abc:d:DeEfghkL:mMnr:stu:vwWz' OPTION; do case "$OPTION" in a) START_AUDITOR="1" @@ -139,6 +140,7 @@ while getopts ':abc:d:DeEfghkL:mMnr:stu:vwW' OPTION; do echo ' -v -- use valgrind' echo ' -w -- start taler-exchange-wirewatch' echo ' -W -- wait for signal' + echo ' -z -- start taler-merchant-wirewatch' exit 0 ;; g) @@ -181,6 +183,9 @@ while getopts ':abc:d:DeEfghkL:mMnr:stu:vwW' OPTION; do W) WAIT_FOR_SIGNAL="1" ;; + z) + START_MERCHANT_WIREWATCH="1" + ;; ?) exit_fail "Unrecognized command line option" ;; @@ -568,19 +573,32 @@ then $USE_VALGRIND taler-merchant-webhook \ -c "$CONF" \ -L "$LOGLEVEL" 2> taler-merchant-webhook.log & + echo " DONE" + if [ "1" = "$START_MERCHANT_WIREWATCH" ] + then + echo -n "Starting taler-merchant-wirewatch ..." + $USE_VALGRIND taler-merchant-wirewatch \ + -c "$CONF" \ + -L "$LOGLEVEL" \ + 2> taler-merchant-wirewatch.log & + echo " DONE" + fi if [ "1" = "$START_MERCHANT_EXCHANGE" ] then + echo -n "Starting taler-merchant-exchange ..." $USE_VALGRIND taler-merchant-exchange \ -c "$CONF" \ -L "$LOGLEVEL" 2> taler-merchant-exchange.log & + echo " DONE" fi if [ "1" = "$START_DEPOSITCHECK" ] then + echo -n "Starting taler-merchant-depositcheck ..." $USE_VALGRIND taler-merchant-depositcheck \ -c "$CONF" \ -L "$LOGLEVEL" 2> taler-merchant-depositcheck.log & + echo " DONE" fi - echo " DONE" fi |