Merge branch 'master' of github.com:jedmccaleb/NewCoin

This commit is contained in:
JoelKatz
2012-04-09 21:15:08 -07:00
8 changed files with 46 additions and 0 deletions

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@
# Ignore object files.
*.o
obj/*
bin/newcoind
newcoind

6
bin/network-build Executable file
View 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
View 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
View File

@@ -0,0 +1,5 @@
#!/bin/sh -x
network-stop
sleep 1
network-start

6
bin/network-start Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
for SITE in $HOSTS
do
(nx $SITE &)
done

6
bin/network-stop Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
for SITE in $HOSTS
do
(nx $SITE stop &)
done

5
bin/network-update Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh -x
echo "Building and restarting."
network-build
network-restart

7
bin/nx Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
SITE=$1
shift
COMMAND=$@
cd "/var/www/$SITE"
newcoind $COMMAND