Update 6_server-start.sh

This commit is contained in:
bashermens
2026-01-10 20:22:27 +01:00
committed by GitHub
parent 05b036d26f
commit acdc2cd5ef

View File

@@ -25,6 +25,8 @@ WORLD_CRASH_LOG="$CRASHES_PATH/worldserver_gdb_$TIMESTAMP.log"
########################################################################################## ##########################################################################################
SERVER_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" SERVER_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
RUN_ENGINE="$SERVER_ROOT/apps/startup-scripts/src/run-engine"
########################################################################################## ##########################################################################################
# Check debug toggle # Check debug toggle
########################################################################################## ##########################################################################################
@@ -68,23 +70,21 @@ start_tmux_session() {
########################################################################################## ##########################################################################################
# Authserver always via acore.sh for auto-restart # 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 if [[ $DEBUG_MODE -eq 1 ]]; then
echo "DEBUG MODE: Worldserver will run under GDB" echo "DEBUG MODE: Running worldserver under GDB"
WORLD_CMD="${SERVER_ROOT}/_server/azerothcore/apps/startup-scripts/src/run-engine restart worldserver \ WORLD_CMD="$RUN_ENGINE restart worldserver \
--bin-path ${SERVER_ROOT}/_server/azerothcore/env/dist/bin \ --bin-path ${SERVER_ROOT}/env/dist/bin \
--server-config ${SERVER_ROOT}/_server/azerothcore/conf/worldserver.conf \ --server-config ${SERVER_ROOT}/conf/worldserver.conf \
--session-manager tmux \ --session-manager tmux \
--gdb-enabled 1 \ --gdb-enabled 1 \
--logs-path $LOGS_PATH \ --logs-path $LOGS_PATH \
--crashes-path $CRASHES_PATH \ --crashes-path $CRASHES_PATH"
--no-restart"
else else
WORLD_CMD="${SERVER_ROOT}/_server/azerothcore/apps/startup-scripts/src/run-engine restart worldserver \ WORLD_CMD="$RUN_ENGINE restart worldserver \
--bin-path ${SERVER_ROOT}/_server/azerothcore/env/dist/bin \ --bin-path ${SERVER_ROOT}/env/dist/bin \
--server-config ${SERVER_ROOT}/_server/azerothcore/conf/worldserver.conf \ --server-config ${SERVER_ROOT}/conf/worldserver.conf \
--session-manager tmux \ --session-manager tmux \
--logs-path $LOGS_PATH \ --logs-path $LOGS_PATH \
--crashes-path $CRASHES_PATH" --crashes-path $CRASHES_PATH"