Update 6_server-start.sh

This commit is contained in:
bashermens
2026-01-10 21:48:31 +01:00
committed by GitHub
parent 12f01fcebc
commit 8d7a6ba040

View File

@@ -55,6 +55,9 @@ start_tmux_session() {
return 1
fi
# Export environment variables inside tmux
tmux send-keys -t "$session_name" "export LOGS_PATH=$LOGS_PATH; export CRASHES_PATH=$CRASHES_PATH" C-m
# Run the command and pipe output to a log file
tmux send-keys -t "$session_name" "$command" C-m
@@ -71,6 +74,7 @@ AUTH_CMD="${ROOT}/_server/azerothcore/acore.sh run-authserver"
# Worldserver
if [[ $DEBUG_MODE -eq 1 ]]; then
# via GDB with RelWithDebInfo or Debug build
echo "DEBUG MODE: Running worldserver under GDB"
WORLD_CMD="gdb -ex \"set logging file $GDB_LOG\" \
@@ -84,8 +88,6 @@ if [[ $DEBUG_MODE -eq 1 ]]; then
--args $ROOT/_server/azerothcore/env/dist/bin/worldserver"
else
# Export environment variables inside tmux
tmux send-keys -t "$session_name" "export LOGS_PATH=$LOGS_PATH; export CRASHES_PATH=$CRASHES_PATH" C-m
# via acore.sh for auto-restart
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
fi