目录

Introduction

This tutorial will walk you through creating a script to restart AzerothCore after a shutdown, restart, or crash when using a Linux server.

The easiest way to setup a restarter is by using our integrated scripts or docker

However, the following guy will show you how to create your own restarter from scratch.

Creating The Scripts

Prerequisites

sudo apt-get update && sudo apt-get install screen nano

Script Creation

#!/bin/sh
while :; do
./authserver
sleep 20
done
while :; do
./worldserver
sleep 20
done
#!/bin/bash
screen -AmdS auth ./auth.sh
screen -AmdS world ./world.sh
#!/bin/bash
screen -X -S "world" quit
screen -X -S "auth" quit

Server Management

Server Startup

Server Monitoring

Server Shutdown