From acdc2cd5efee6b12c510bb78ca034615f9a6d55c Mon Sep 17 00:00:00 2001 From: bashermens <31279994+hermensbas@users.noreply.github.com> Date: Sat, 10 Jan 2026 20:22:27 +0100 Subject: [PATCH] Update 6_server-start.sh --- script/6_server-start.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/script/6_server-start.sh b/script/6_server-start.sh index bfd6b46..25cce5a 100755 --- a/script/6_server-start.sh +++ b/script/6_server-start.sh @@ -25,6 +25,8 @@ WORLD_CRASH_LOG="$CRASHES_PATH/worldserver_gdb_$TIMESTAMP.log" ########################################################################################## SERVER_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUN_ENGINE="$SERVER_ROOT/apps/startup-scripts/src/run-engine" + ########################################################################################## # Check debug toggle ########################################################################################## @@ -68,23 +70,21 @@ start_tmux_session() { ########################################################################################## # Authserver always via acore.sh for auto-restart -AUTH_CMD="${SERVER_ROOT}/_server/azerothcore/acore.sh run-authserver" +AUTH_CMD="${SERVER_ROOT}/acore.sh run-authserver" -# Worldserver: normal vs debug (GDB) if [[ $DEBUG_MODE -eq 1 ]]; then - echo "DEBUG MODE: Worldserver will run under GDB" - WORLD_CMD="${SERVER_ROOT}/_server/azerothcore/apps/startup-scripts/src/run-engine restart worldserver \ - --bin-path ${SERVER_ROOT}/_server/azerothcore/env/dist/bin \ - --server-config ${SERVER_ROOT}/_server/azerothcore/conf/worldserver.conf \ + echo "DEBUG MODE: Running worldserver under GDB" + WORLD_CMD="$RUN_ENGINE restart worldserver \ + --bin-path ${SERVER_ROOT}/env/dist/bin \ + --server-config ${SERVER_ROOT}/conf/worldserver.conf \ --session-manager tmux \ --gdb-enabled 1 \ --logs-path $LOGS_PATH \ - --crashes-path $CRASHES_PATH \ - --no-restart" + --crashes-path $CRASHES_PATH" else - WORLD_CMD="${SERVER_ROOT}/_server/azerothcore/apps/startup-scripts/src/run-engine restart worldserver \ - --bin-path ${SERVER_ROOT}/_server/azerothcore/env/dist/bin \ - --server-config ${SERVER_ROOT}/_server/azerothcore/conf/worldserver.conf \ + WORLD_CMD="$RUN_ENGINE restart worldserver \ + --bin-path ${SERVER_ROOT}/env/dist/bin \ + --server-config ${SERVER_ROOT}/conf/worldserver.conf \ --session-manager tmux \ --logs-path $LOGS_PATH \ --crashes-path $CRASHES_PATH"