Merge pull request #4463 from harmony-one/fix/killnode

Fix kill_node script
pull/4464/head
Casey Gardiner 1 year ago committed by GitHub
commit dfb0c63ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      test/kill_node.sh

@ -1,3 +1,11 @@
#!/bin/bash
pkill -9 '^(harmony|soldier|commander|profiler|bootnode)$' | sed 's/^/Killed process: /'
rm -rf db-127.0.0.1-*
# list of process name to be killed
targetProcess=( "harmony" "bootnode" "soldier" "commander" "profiler" )
for pname in "${targetProcess[@]}"
do
sudo pkill -9 -e "^(${pname})$"
done
rm -rf db-127.0.0.1-*
Loading…
Cancel
Save