add cluster-shell

pull/252/head
Ryan Tharp 5 years ago
parent 5b5ea74c40
commit 0e5157dc93

@ -0,0 +1,3 @@
#!/bin/sh
rm -fr loki*/tmp-nodes
rm loki*/profile.dat

@ -0,0 +1,7 @@
mkdir loki$1
cd loki$1
ln -s ../lokinet lokinet$1
cp ../lokinet.ini .
nano lokinet.ini
cd ..
echo "killall -9 lokinet$1" >> ../stop.sh

@ -0,0 +1,16 @@
#!/bin/bash
set +x
cd loki1
nohup ./lokinet1 $PWD/lokinet.ini &
# seed node needs some time to write RC to make sure it's not expired on load for the rest
sleep 1
cd ../loki2
nohup ./lokinet2 $PWD/lokinet.ini &
cd ../loki3
nohup ./lokinet3 $PWD/lokinet.ini &
cd ../loki4
nohup ./lokinet4 $PWD/lokinet.ini &
cd ../loki5
nohup ./lokinet5 $PWD/lokinet.ini &
cd ..
tail -f loki*/nohup.out

@ -0,0 +1,7 @@
#!/bin/sh
killall -9 lokinet1
killall -9 lokinet2
killall -9 lokinet3
killall -9 lokinet4
killall -9 lokinet5
killall -9 lokinet6
Loading…
Cancel
Save