do not pkill geomyidae, kill the last background process - geomyidae-tests - ge… | |
git clone git://bitreich.org/geomyidae-tests/ git://enlrupgkhuxnvlhsf6lc3fziv5h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 4b6dfb4a3198d8b40b4e75a377f49656cb699c07 | |
parent 0432b0f21312c4a26d4933a863293725e853a95a | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 21 Jul 2023 16:18:10 +0200 | |
do not pkill geomyidae, kill the last background process | |
allows running multiple geomyidae instances | |
Diffstat: | |
M run.sh | 18 +++++++++++------- | |
1 file changed, 11 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/run.sh b/run.sh | |
@@ -45,25 +45,29 @@ test -e test_counter.txt || ln -sf ../test_counter.txt test… | |
cd ../ || exit 1 | |
"$bin" -4 -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$group… | |
+pid=$! | |
+#echo "PID is: $pid" >&2 | |
run_tests | |
-pkill geomyidae | |
+kill "$pid" | |
chroot=1 | |
"$bin" -4 -c -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$gr… | |
+pid=$! | |
+#echo "PID is: $pid" >&2 | |
run_tests | |
-pkill geomyidae | |
+kill "$pid" | |
-# TOOD: test TLS | |
+# TOOD: test TLS in chroot and non-chroot also. | |
#tls=1 | |
#chroot=0 | |
-# TODO | |
+#start geomyidae | |
#run_tests | |
-#pkill geomyidae | |
+#kill geomyidae | |
#tls=1 | |
#chroot=1 | |
-# TODO | |
+#start geomyidae | |
#run_tests | |
-#pkill geomyidae | |
+#kill geomyidae | |
echo "done" |