Update 6_server-start.sh

This commit is contained in:
bashermens
2026-01-10 22:28:06 +01:00
committed by GitHub
parent bc29002bc4
commit d4d015bd66

View File

@@ -66,18 +66,19 @@ start_tmux_session() {
}
##########################################################################################
# Prepare commands
# Run services
##########################################################################################
# Authserver via acore.sh for auto-restart
# Start authserver via acore.sh for auto-restart
AUTH_CMD="${ROOT}/_server/azerothcore/acore.sh run-authserver"
start_tmux_session "$AUTHSERVER_SESSION" "$AUTH_CMD"
# Worldserver
# Start worldserver
if [[ $DEBUG_MODE -eq 1 ]]; then
# via GDB with RelWithDebInfo or Debug build
# Run GDB directly in current terminal (no tmux) and with RelWithDebInfo or Debug build
echo "DEBUG MODE: Running worldserver under GDB"
WORLD_CMD="cd $ROOT/_server/azerothcore/env/dist/bin && \
cd $ROOT/_server/azerothcore/env/dist/bin && \
gdb -ex \"set logging file $GDB_LOG\" \
-ex \"set logging enabled on\" \
-ex \"set pagination off\" \
@@ -87,22 +88,15 @@ if [[ $DEBUG_MODE -eq 1 ]]; then
-ex \"info threads\" \
-ex \"thread apply all bt full\" \
-ex \"quit\" \
--args ./worldserver"
--args ./worldserver
else
# via acore.sh for auto-restart
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
fi
##########################################################################################
# Start servers
##########################################################################################
start_tmux_session "$AUTHSERVER_SESSION" "$AUTH_CMD"
start_tmux_session "$WORLDSERVER_SESSION" "$WORLD_CMD"
fi
##########################################################################################
# Optional: show menu if exists
# show menu
##########################################################################################
if [[ -f "${ROOT}/script/menu.sh" ]]; then
source "${ROOT}/script/menu.sh"
fi