Cron Job that Boots Screen at Start
- by Pez Cuckow
I am trying to set up a number of processes that start during boot (servers for games) with the below command as the cron item:
@reboot /usr/bin/screen -fa -d -m -S
NAME COMMAND
However if the server crashes for what ever reason screen closes and the server doesn't get a chance to run it's auto restart (as far as I understand; screen sees no processes in the socket and so closes).
Is there a way that I can get around this so screen will sit there even if nothing is running in it?