summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2024-01-14 17:41:32 +0100
committerChristian Grothoff <grothoff@gnunet.org>2024-01-14 17:41:32 +0100
commit0e8051b3c71bd1723b996d1802715f85854408cf (patch)
tree1672a72cf90870df0d5cec7d29f291bb04d4d1ac
parent77301ea8e8b68dc4e32cf90842e1e6a4e0fe30c4 (diff)
downloadtaler-mdb-0e8051b3c71bd1723b996d1802715f85854408cf.tar.gz
taler-mdb-0e8051b3c71bd1723b996d1802715f85854408cf.tar.bz2
taler-mdb-0e8051b3c71bd1723b996d1802715f85854408cf.zip
bugfixes in network monitor script
-rwxr-xr-xcontrib/taler-mdb-network-check.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/taler-mdb-network-check.sh b/contrib/taler-mdb-network-check.sh
index 49d159d..d0a8a11 100755
--- a/contrib/taler-mdb-network-check.sh
+++ b/contrib/taler-mdb-network-check.sh
@@ -63,6 +63,8 @@ while getopts ':c:f:h' OPTION; do
done
shift $((OPTIND - 1))
+WORKER="$@"
+
dig -h > /dev/null || exit_fail "'dig' is required"
if [[ ${FAIL_PROG:-} = "" ]]
@@ -195,7 +197,7 @@ function check_network()
then
echo "Starting child using " $@
# shellcheck disable=SC2068
- $@ &
+ $WORKER &
CHILD_PID=$!
fi
}