So just to make life easier there is a simple restarter script
#! /bin/bash
until path/to/your/worldserver; do
echo “Server Crashed. Exit Code $?. Restarting Now”
sleep 1
done
Simply make a file with that text (Replace path to your worldserver :P)
Chmod to 755
./nameofyourfile
You will now have a server monitor. If the server crashes then it will automatically restart.
You can also take it a step futher
crontab -e
Then add a rule to start your monitor script:
@reboot /path/to/your/monitor
Now on reboot your starter will automatically start up the server.
Hope you enjoy. /emoticons/default_smile.png