diff options
-rwxr-xr-x | char-server | 4 | ||||
-rwxr-xr-x | login-server | 4 | ||||
-rwxr-xr-x | map-server | 4 | ||||
-rwxr-xr-x | run-all | 8 | ||||
-rwxr-xr-x | tools/bin/restart-login | 2 | ||||
-rwxr-xr-x | tools/bin/restart-world | 4 |
6 files changed, 16 insertions, 10 deletions
diff --git a/char-server b/char-server index 9d6848f5..9b508cbb 100755 --- a/char-server +++ b/char-server @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash +echo -e '\e[5;7;31mPlease update your build of TMWA, then use ./run-all\e[m' >& 2 +sleep 10 cd world && exec char-server diff --git a/login-server b/login-server index 52180e50..283c8631 100755 --- a/login-server +++ b/login-server @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash +echo -e '\e[5;7;31mPlease update your build of TMWA, then use ./run-all\e[m' >& 2 +sleep 10 cd login && exec login-server @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash +echo -e '\e[5;7;31mPlease update your build of TMWA, then use ./run-all\e[m' >& 2 +sleep 10 cd world/map && exec map-server @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash SELF=$(realpath $(which "$0")) cd "$(dirname "$SELF")" trap 'kill %1 %2 %3' SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM -./login-server & -./char-server & -./map-server & +( cd login && tmwa-login ) & +( cd world && tmwa-char ) & +( cd world/map && tmwa-map ) & wait diff --git a/tools/bin/restart-login b/tools/bin/restart-login index 765fe248..ebb5fe17 100755 --- a/tools/bin/restart-login +++ b/tools/bin/restart-login @@ -1,3 +1,3 @@ #!/bin/bash -e cd "$1" -restart-pid login-server +restart-pid tmwa-login diff --git a/tools/bin/restart-world b/tools/bin/restart-world index 7fead17f..ccd9e453 100755 --- a/tools/bin/restart-world +++ b/tools/bin/restart-world @@ -24,5 +24,5 @@ then (cd world/map/conf; cat magic.conf.template | ./spells-build > magic.conf) fi -restart-pid char-server -restart-pid map-server +restart-pid tmwa-char +restart-pid tmwa-map |