commit
dfb0c63ac2
@ -1,3 +1,11 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
pkill -9 '^(harmony|soldier|commander|profiler|bootnode)$' | sed 's/^/Killed process: /' |
|
||||||
|
# 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-* |
rm -rf db-127.0.0.1-* |
Loading…
Reference in new issue