summaryrefslogtreecommitdiff
path: root/run-all
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-07-13 17:42:00 -0700
committerBen Longbons <b.r.longbons@gmail.com>2012-07-19 11:04:33 -0700
commit667305e9bc1ac987319cea8f9e79105f18d02874 (patch)
tree79a9416304614308e28ef917b68c67076fc272e0 /run-all
parenta08660ca24cc18778ad929eb5a79453ba37d232e (diff)
downloadserverdata-667305e9bc1ac987319cea8f9e79105f18d02874.tar.gz
serverdata-667305e9bc1ac987319cea8f9e79105f18d02874.tar.bz2
serverdata-667305e9bc1ac987319cea8f9e79105f18d02874.tar.xz
serverdata-667305e9bc1ac987319cea8f9e79105f18d02874.zip
Add a script to run all three servers, from anywhere.
Diffstat (limited to 'run-all')
-rwxr-xr-xrun-all10
1 files changed, 10 insertions, 0 deletions
diff --git a/run-all b/run-all
new file mode 100755
index 00000000..a6a58f82
--- /dev/null
+++ b/run-all
@@ -0,0 +1,10 @@
+#!/bin/sh
+SELF=$(realpath $(which "$0"))
+cd "$(dirname "$SELF")"
+
+trap 'kill %1 %2 %3' SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM
+./login-server &
+./char-server &
+./map-server &
+
+wait