The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/test/kill_node.sh

17 lines
311 B

#!/bin/bash
# list of process name to be killed
targetProcess=( "harmony" "bootnode" "soldier" "commander" "profiler" )
NAME="$(uname -s)"
for pname in "${targetProcess[@]}"
do
if [ $NAME == "Darwin" ]; then
pkill -9 "^(${pname})$"
else
pkill -9 -e "^(${pname})$"
fi
done
rm -rf db-127.0.0.1-*