mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
20 lines
413 B
Bash
Executable file
20 lines
413 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
# kill actual node backends
|
|
killall node 2>/dev/null
|
|
|
|
# kill "while true" loops
|
|
killall sh 2>/dev/null
|
|
|
|
# kill nginx cache warmer scripts
|
|
for pid in `ps uaxww|grep warmer|grep zsh|awk '{print $2}'`;do
|
|
kill $pid
|
|
done
|
|
|
|
# kill nginx cache heater scripts
|
|
for pid in `ps uaxww|grep heater|grep zsh|awk '{print $2}'`;do
|
|
kill $pid
|
|
done
|
|
|
|
# always exit successfully despite above errors
|
|
exit 0
|