summaryrefslogtreecommitdiff
path: root/src/exchange/test_taler_exchange_httpd_restart.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-08 19:06:19 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-08 19:06:19 +0100
commit001f1552089fbd1e7fea540d2561c79bab2dfbac (patch)
treeb92d40a5ebd05afdcf4650aab6a7db54fca1486e /src/exchange/test_taler_exchange_httpd_restart.sh
parentf70596ff4c93a1906533fd488bf5fed1801eeb99 (diff)
downloadexchange-001f1552089fbd1e7fea540d2561c79bab2dfbac.tar.gz
exchange-001f1552089fbd1e7fea540d2561c79bab2dfbac.tar.bz2
exchange-001f1552089fbd1e7fea540d2561c79bab2dfbac.zip
make script a bit nicer
Diffstat (limited to 'src/exchange/test_taler_exchange_httpd_restart.sh')
-rwxr-xr-xsrc/exchange/test_taler_exchange_httpd_restart.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/exchange/test_taler_exchange_httpd_restart.sh b/src/exchange/test_taler_exchange_httpd_restart.sh
index 81ac0455..f7d7a305 100755
--- a/src/exchange/test_taler_exchange_httpd_restart.sh
+++ b/src/exchange/test_taler_exchange_httpd_restart.sh
@@ -49,7 +49,7 @@ unset XDG_CONFIG_HOME
echo -n "Launching exchange ..."
PREFIX=
# Uncomment this line to run with valgrind...
-# PREFIX="valgrind --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p"
+# PREFIX="valgrind --trace-children=yes --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p"
# Setup keys.
taler-exchange-keyup -c test_taler_exchange_unix.conf || exit 1
@@ -73,11 +73,7 @@ do
done
if [ 1 != $OK ]
then
- echo "Failed to launch exchange"
- kill -TERM $!
- wait $!
- echo Process status: $?
- exit 77
+ exit_fail "Failed to launch exchange"
fi
echo " DONE"
@@ -110,6 +106,7 @@ kill -TERM $CPID
while true
do
ps x | grep -v grep | grep taler-exchange-httpd > /dev/null || break
+ sleep 0.1
done
echo " DONE"