mempool/production/mempool-restart-all

9 lines
303 B
Plaintext
Raw Normal View History

#!/usr/bin/env zsh
2021-08-21 08:14:45 +02:00
HOSTNAME=$(hostname)
2021-08-21 08:14:45 +02:00
echo restarting mempool backends | wall
echo "${HOSTNAME} restarted mempool backends" | /usr/local/bin/keybase chat send --nonblock --channel general mempool.devops
ps uaxw|grep 'dist/index'|grep -v grep|grep -v services|awk '{print $2}'|xargs -n 1 kill
exit 0