[7189] Prevent use wrong security levels (>= SEC_CONSOLE)
[getmangos.git] / src / mangosd / run-mangosd
blob08f4cc9891f957a462391c428871cd88841cbced
1 #!/bin/bash
2 # Massive Network Game Object Server
3 # autorestart Script
5 while :
6 do
7 echo "MaNGOS daemon restarted"
8 echo `date` >> crash.log &
9 ./mangosd | tail -n 20 >> crash.log
10 echo " " >> crash.log &
11 pid=`ps ax | awk '($5 ~ /mangosd/) { print $1 }'`
12 wait $pid
13 echo `date` ", MaNGOS daemon crashed and restarted." >> serverlog
14 done