Skip to content

Commit

Permalink
Update ac-dashboard-core-installation.md
Browse files Browse the repository at this point in the history
added a wait command for MYSQL so on boot TMUX does not fail to start server
  • Loading branch information
Viskus authored Sep 26, 2024
1 parent 5dcc88f commit d2a9251
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/ac-dashboard-core-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@ You can automatically create the tmux sessions and execute the `authserver` and
```sh
#!/usr/bin/env bash

# ALLOW TMUX TO WAIT FOR MYSQL TO BE READY
# YOU MUST CHANGE THE USER AND PASSWORD TO CORRESPOND WITH YOUR INSTALL
mysql_ready() {
mysqladmin ping --host=127.0.0.1 --user=YOURUSER --password=YOURPASSWORD > /dev/null 2>&1
}

while !(mysql_ready)
do
sleep 3
echo "waiting for mysql ..."
done

# CHANGE THESE WITH THE CORRECT PATHS
authserver="/path/to/azerothcore-wotlk/acore.sh run-authserver"
worldserver="/path/to/azerothcore-wotlk/acore.sh run-worldserver"
Expand Down

0 comments on commit d2a9251

Please sign in to comment.