launch_local_testnet.sh: print processes first

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-02-27 19:48:07 +01:00
parent 02437bb365
commit f2a09802b1
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 6 additions and 0 deletions

View File

@ -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.