mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-02-07 19:21:09 +00:00
Update 6_server-start.sh
This commit is contained in:
@@ -55,6 +55,9 @@ start_tmux_session() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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
|
# Run the command and pipe output to a log file
|
||||||
tmux send-keys -t "$session_name" "$command" C-m
|
tmux send-keys -t "$session_name" "$command" C-m
|
||||||
|
|
||||||
@@ -71,6 +74,7 @@ AUTH_CMD="${ROOT}/_server/azerothcore/acore.sh run-authserver"
|
|||||||
|
|
||||||
# Worldserver
|
# Worldserver
|
||||||
if [[ $DEBUG_MODE -eq 1 ]]; then
|
if [[ $DEBUG_MODE -eq 1 ]]; then
|
||||||
|
|
||||||
# via GDB with RelWithDebInfo or Debug build
|
# via GDB with RelWithDebInfo or Debug build
|
||||||
echo "DEBUG MODE: Running worldserver under GDB"
|
echo "DEBUG MODE: Running worldserver under GDB"
|
||||||
WORLD_CMD="gdb -ex \"set logging file $GDB_LOG\" \
|
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"
|
--args $ROOT/_server/azerothcore/env/dist/bin/worldserver"
|
||||||
else
|
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
|
# via acore.sh for auto-restart
|
||||||
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
|
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user