Skip to content

Instantly share code, notes, and snippets.

@buzzkillb
Created October 21, 2019 01:54
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 buzzkillb/487077c1f80de373d46e2fbc81f6f968 to your computer and use it in GitHub Desktop.
Save buzzkillb/487077c1f80de373d46e2fbc81f6f968 to your computer and use it in GitHub Desktop.
restart many denarius daemons
#!/bin/bash
#using denarius.daemon snap
#stop and start 01-09
for ((i=1; i<10; i++))
do
echo "denarius_0$i.daemon stop"
denarius_0$i.daemon stop
sleep 10
echo "denarius_0$i.daemon"
denarius_0$i.daemon
done
#stop and start 10-20, change 21 to + of total
for ((i=10; i<21; i++))
do
echo "denarius_$i.daemon stop"
denarius_$i.daemon stop
sleep 10
echo "denarius_$i.daemon"
denarius_$i.daemon
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment