mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
15 lines
339 B
Bash
15 lines
339 B
Bash
#!/bin/bash
|
|
# Trinity Server
|
|
# autorestart Script
|
|
|
|
while :
|
|
do
|
|
echo "TrinityCore daemon restarted"
|
|
echo `date` >> crash.log &
|
|
./mangosd | tail -n 20 >> crash.log
|
|
echo " " >> crash.log &
|
|
pid=`ps ax | awk '($5 ~ /trinitycore/) { print $1 }'`
|
|
wait $pid
|
|
echo `date` ", TrinityCore daemon crashed and restarted." >> serverlog
|
|
done
|