summaryrefslogtreecommitdiff
path: root/tools/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
commit14ad8654cc1f6050d6e6af42dcc300b8bf07acb5 (patch)
tree306cd708d3a62884a14bd6b32a39d631284f641c /tools/bin/restart-all
parent212d482887e98c534bbf86b43b4defd4e03ca632 (diff)
downloadserverdata-14ad8654cc1f6050d6e6af42dcc300b8bf07acb5.tar.gz
serverdata-14ad8654cc1f6050d6e6af42dcc300b8bf07acb5.tar.bz2
serverdata-14ad8654cc1f6050d6e6af42dcc300b8bf07acb5.tar.xz
serverdata-14ad8654cc1f6050d6e6af42dcc300b8bf07acb5.zip
Add restart scripts as used on the test server.
Diffstat (limited to 'tools/bin/restart-all')
-rwxr-xr-xtools/bin/restart-all21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/bin/restart-all b/tools/bin/restart-all
new file mode 100755
index 00000000..5d7e2425
--- /dev/null
+++ b/tools/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