Created
October 21, 2019 01:54
-
-
Save buzzkillb/487077c1f80de373d46e2fbc81f6f968 to your computer and use it in GitHub Desktop.
restart many denarius daemons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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