Skip to content

Instantly share code, notes, and snippets.

@bensig
Created August 5, 2019 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bensig/9e82f9901c9cc90efab92bf948e5aaaa to your computer and use it in GitHub Desktop.
Save bensig/9e82f9901c9cc90efab92bf948e5aaaa to your computer and use it in GitHub Desktop.
EOS nodeos stop script
#!/bin/bash
NODEOS=/home/ubuntu/src/wax-blockchain/build/programs/nodeos/nodeos
DATADIR=/home/ubuntu/eos/wax/node
GENESIS=/home/ubuntu/eos/wax/genesis.json
if [ -f $DATADIR"/nodeos.pid" ]; then
pid=$(cat $DATADIR"/nodeos.pid")
echo $pid
kill $pid
rm -r $DATADIR"/nodeos.pid"
echo -ne "Stopping Nodeos"
while true; do
[ ! -d "/proc/$pid/fd" ] && break
echo -ne "."
sleep 1
done
echo -ne "\rNodeos stopped. \n"
fi
@bensig
Copy link
Author

bensig commented Aug 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment