Cron Job that Boots Screen at Start
Posted
by
Pez Cuckow
on Super User
See other posts from Super User
or by Pez Cuckow
Published on 2011-01-08T20:19:28Z
Indexed on
2011/01/08
20:56 UTC
Read the original article
Hit count: 249
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?
© Super User or respective owner