Open a screen session inside a certain user on boot Ubuntu Server Linux

Posted by Pez Cuckow on Super User See other posts from Super User or by Pez Cuckow
Published on 2011-01-05T13:50:50Z Indexed on 2011/01/05 13:56 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

I currently have a private server which I test my web apps on which runs Ubuntu Server 10.04 I also host a few game servers (rather than having wasted CPU time :-D) for some of my friends.

These game servers I run in the game user account and each one has it's own screen session (so friends can ssh in and reboot the game server etc...). For example screen -R l4d2 runs ./start in the L4D2 folder.

However if I reboot the server (which I have to do occasionally) all these sessions close and I have to manually create all the screen sessions and run the required games within them.

Is there a way to set these screen sessions as Daemons or services or just boot on server start so they restart themselves on server reboot?

I hope I have made my question easy to understand but feel free to ask questions!

Many thanks,

© Super User or respective owner

Related posts about ubuntu

Related posts about ubuntu-10.04