summaryrefslogtreecommitdiff
path: root/bin/restart-all
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-07 20:09:46 -0800
committerBen Longbons <b.r.longbons@gmail.com>2012-12-07 20:09:46 -0800
commit2a6616793bdcbe3ce645323b71defd820756bbfd (patch)
treeb9250d2b5eae26608cae53e0b521a266a7cddca6 /bin/restart-all
parente6ece9ca854958d847ae4c66fac21a225df3c60a (diff)
downloadtools-2a6616793bdcbe3ce645323b71defd820756bbfd.tar.gz
tools-2a6616793bdcbe3ce645323b71defd820756bbfd.tar.bz2
tools-2a6616793bdcbe3ce645323b71defd820756bbfd.tar.xz
tools-2a6616793bdcbe3ce645323b71defd820756bbfd.zip
Add restart scripts as used on the test server.
Diffstat (limited to 'bin/restart-all')
-rwxr-xr-xbin/restart-all21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/restart-all b/bin/restart-all
new file mode 100755
index 0000000..5d7e242
--- /dev/null
+++ b/bin/restart-all
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+source restart-config
+if test -n "$REBUILD"
+then
+ cd $SERVER_SOURCE
+ git pull
+ make
+ make install prefix=${HOME}
+fi
+
+restart-login $LOGIN_WORLD
+
+for world in ${AUTO_WORLDS[@]}
+do
+ restart-world $world --auto
+done
+
+for world in ${MANUAL_WORLDS[@]}
+do
+ restart-world $world --manual
+done