I want to create a crontab entry so that it starts screen, starts a gameserver and detaches. This is for in case the server is rebooted and I want it to automatically start this for me.
0 0 0 0 0 (command)
should run upon startup.
It runs a shell file located at ~/cube/server.sh
Best Answer
Something like this should work. This example spawns a screen and runs "top":
In your crontab, as indicated, you'd want to do something like this:
Of course, if the game server requires a "normal" environment set, you can get closer by: