mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Initial check in of scripts for managing testing hosts.
This commit is contained in:
6
bin/network-build
Executable file
6
bin/network-build
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
cd ~/NewCoin
|
||||||
|
git pull
|
||||||
|
scons -j 2
|
||||||
|
cp -p newcoind bin/
|
||||||
10
bin/network-init
Executable file
10
bin/network-init
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# XXX Should not need to make db directory. newcoind should do this.
|
||||||
|
for SITE in $HOSTS
|
||||||
|
do
|
||||||
|
echo "Clearing db for:" $SITE
|
||||||
|
DB_DIR="/var/www/$SITE/db/"
|
||||||
|
mkdir -p "/var/www/$SITE/db/"
|
||||||
|
rm -rf "/var/www/$SITE/db/*"
|
||||||
|
done
|
||||||
5
bin/network-restart
Executable file
5
bin/network-restart
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
network-stop
|
||||||
|
sleep 1
|
||||||
|
network-start
|
||||||
6
bin/network-start
Executable file
6
bin/network-start
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for SITE in $HOSTS
|
||||||
|
do
|
||||||
|
(nx $SITE &)
|
||||||
|
done
|
||||||
6
bin/network-stop
Executable file
6
bin/network-stop
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for SITE in $HOSTS
|
||||||
|
do
|
||||||
|
(nx $SITE stop &)
|
||||||
|
done
|
||||||
5
bin/network-update
Executable file
5
bin/network-update
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
echo "Building and restarting."
|
||||||
|
|
||||||
|
network-build
|
||||||
|
network-restart
|
||||||
Reference in New Issue
Block a user