From f2a09802b1ab8f4f65dcd4ead479ec592f6b1106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 27 Feb 2023 19:48:07 +0100 Subject: [PATCH] launch_local_testnet.sh: print processes first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- scripts/launch_local_testnet.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/launch_local_testnet.sh b/scripts/launch_local_testnet.sh index 870fcaa16..7f8a0d790 100755 --- a/scripts/launch_local_testnet.sh +++ b/scripts/launch_local_testnet.sh @@ -743,6 +743,12 @@ cleanup() { PKILL_ECHO_FLAG='-l' fi + echo "Existing processes:" + for proc in "${PROCS_TO_KILL[@]}"; do + PROC_NAME=$(basename "$proc") + pgrep -alf "${PROC_NAME}" || true + done + echo "Terminating:" for proc in "${PROCS_TO_KILL[@]}"; do # FIXME We should be using '-P $$' here but it doesn't always work.