Try something like:<br>sudo -u &lt;username&gt; screen -mdLS &lt;screen_session_name&gt; bash -c &quot;/path/to/some_start_script.sh&quot;<br>the some_start_script.sh can just be a continuous while loop, so when it crashes, it just restarts.<br>
<br>You can create a /etc/init.d/games file and use that to start/stop/restart servers with some bash scripting.<br>Then you can add the games service to your multiuser runlevel (5 on redhat systems, 3 on debian based )<br>
<br><br><div class="gmail_quote">On Mon, Dec 14, 2009 at 4:05 PM, Frode L <span dir="ltr">&lt;<a href="mailto:reg01@kittilsbotn.com">reg01@kittilsbotn.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" style="word-wrap: break-word;" lang="NO-BOK">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I have tried it, but that does not solve my problem on how to
start it at boot or even automatically restarting it upon crash.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I still have to start the screen session at boot, and I don’t
have a clue on how to do so.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Any suggestions? (Reverting to win server is out of the
question) </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" lang="EN-US">J</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"></span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Regards</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">HotRod</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Oliver Warburton
[mailto:<a href="mailto:olly@inx-gaming.co.uk" target="_blank">olly@inx-gaming.co.uk</a>] <br>
<b>Sent:</b> 14. desember 2009 21:58<br>
<b>To:</b> Call of Duty server admin list.<br>
<b>Subject:</b> Re: [cod] Autostart COD4/WaW linux server at boot</span></p>

</div>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal">There are several options.</p>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Using screen isn&#39;t a bad idea- have you checked that?</p>

</div>

<div>

<p class="MsoNormal"> </p>

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;">Oliver Warburton</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;">Managing Director</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;">INX-Network LTD</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;"> </span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;">INX-Gaming.com</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 9pt; color: black;"><a href="http://www.inx-gaming.com" target="_blank">www.inx-gaming.com</a></span></p>

</div>

</div>

</div>

<p class="MsoNormal"> </p>

<div>

<div>

<p class="MsoNormal">On 14 Dec 2009, at 20:52, Frode L wrote:</p>

</div>

<p class="MsoNormal"><br>
<br>
</p>

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">Hi I’m a bit newbie when it comes to nix servers and I really need
some help.</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">I have been looking all over the net for a tutorial on this
subject, hopefully I have found the right spot.</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US"> </span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">Anyone got a good tutorial or can help me to get a COD4 or WaW
linux server to start at boot?</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">I got the server running, but so far in a putty window and I can’t
have it running like that.</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US"> </span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">The server is running on a CentOS box with Webmin, Putty and local
access, no GUI other than the Webmin.</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US"> </span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">All help would be appreciated..</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US"> </span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">Regards</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: black;" lang="EN-US">HotRod</span><span style="font-size: 11pt; color: black;"></span></p>

</div>

</div>

<p class="MsoNormal"><span style="font-size: 13.5pt; color: black;">_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org" target="_blank">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a></span></p>

</div>

</div>

<p class="MsoNormal"> </p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Peter Fetterer<br>KB3GTN<br><br>The force is like duct tape.<br>It has a light side and a darkside <br>and binds the universe together. <br>