summaryrefslogtreecommitdiff
path: root/tools/bin
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:32:08 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:32:08 -0800
commite34e49d3064640e01305549413c862ee0a7a79aa (patch)
tree863efe11d5aa9a079188df2c9f0c112c93e13074 /tools/bin
parent45185408935a56197c308da7ae5d27d72fe06917 (diff)
downloadserverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.gz
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.bz2
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.xz
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.zip
Change tools/ to a submodule
Diffstat (limited to 'tools/bin')
-rwxr-xr-xtools/bin/restart-all21
-rw-r--r--tools/bin/restart-config25
-rwxr-xr-xtools/bin/restart-login3
-rwxr-xr-xtools/bin/restart-pid44
-rwxr-xr-xtools/bin/restart-world28
5 files changed, 0 insertions, 121 deletions
diff --git a/tools/bin/restart-all b/tools/bin/restart-all
deleted file mode 100755
index 5d7e2425..00000000
--- a/tools/bin/restart-all
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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
diff --git a/tools/bin/restart-config b/tools/bin/restart-config
deleted file mode 100644
index e19ab314..00000000
--- a/tools/bin/restart-config
+++ /dev/null
@@ -1,25 +0,0 @@
-## TMW restart script settings
-## This file must be in ~/bin/ even though it's not executable
-
-## Mandatory filepath settings
-SERVER_SOURCE=~/eathena
-LOGIN_WORLD=~/tmwa-server-data
-AUTO_WORLDS=(
- ~/tmwa-server-data
-)
-MANUAL_WORLDS=(
- ~/tmwa-server-test
-)
-## Boolean settings (nonempty for true)
-## if not specified here, the value from the environment is used,
-## which is probably empty (false). However, some scripts may
-## provide command-line options to override the defaults.
-
-## Should the servers print their output to the terminal?
-# VERBOSE=yep
-
-## Should server sources be rebuilt?
-# REBUILD=sure
-
-## Should server data be pulled?
-# PULL=certainly
diff --git a/tools/bin/restart-login b/tools/bin/restart-login
deleted file mode 100755
index ebb5fe17..00000000
--- a/tools/bin/restart-login
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash -e
-cd "$1"
-restart-pid tmwa-login
diff --git a/tools/bin/restart-pid b/tools/bin/restart-pid
deleted file mode 100755
index 498bdcc4..00000000
--- a/tools/bin/restart-pid
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash -e
-# do nasty work here
-# The job of this script is twofold:
-# 1. kill the existing server, if it exists
-# 2. write the PID file and start the new server
-
-source restart-config
-
-PROCESS=$1
-
-if test -f $PROCESS.pid
-then
- # if the process ID may change its name (e.g. via exec),
- # then remove '$PROCESS' on the following line
- PID=$(pgrep $PROCESS -u $UID -F $PROCESS.pid || true)
- if test -n "$PID"
- then
- kill $PID
- echo waiting for $PID to die so I can restart $PROCESS
- while
- ! kill -s 0 $PID
- do
- echo -n .
- sleep 1
- done
- # This shouldn't be necessary, but somehow is
- sleep 2
- echo
- else
- echo $PROCESS.pid does not point to a valid process - nothing killed
- fi
-else
- echo No PID file $PROCESS.pid found - nothing killed
-fi
-
-if test -z "$VERBOSE"
-then
- exec >/dev/null 2>&1
-fi
-
-{
- # $$ is not reset in subshells
- exec sh -c 'echo $$ > '$PROCESS'.pid; exec ./'$PROCESS
-} &
diff --git a/tools/bin/restart-world b/tools/bin/restart-world
deleted file mode 100755
index ccd9e453..00000000
--- a/tools/bin/restart-world
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash -e
-cd "$1"
-shift
-
-source restart-config
-
-for ARG
-do
- if [ "$ARG" = --auto ]
- then
- PULL=y
- elif [ "$ARG" = --manual ]
- then
- PULL=
- else
- echo unknown argument
- exit 1
- fi
-done
-
-if test -n "$PULL"
-then
- git pull
- (cd world/map/conf; cat magic.conf.template | ./spells-build > magic.conf)
-fi
-
-restart-pid tmwa-char
-restart-pid tmwa-map