[cod] Autostart COD4/WaW linux server at boot

Pete biovore at gmail.com
Mon Dec 14 16:19:23 EST 2009


Try something like:
sudo -u <username> screen -mdLS <screen_session_name> bash -c
"/path/to/some_start_script.sh"
the some_start_script.sh can just be a continuous while loop, so when it
crashes, it just restarts.

You can create a /etc/init.d/games file and use that to start/stop/restart
servers with some bash scripting.
Then you can add the games service to your multiuser runlevel (5 on redhat
systems, 3 on debian based )


On Mon, Dec 14, 2009 at 4:05 PM, Frode L <reg01 at kittilsbotn.com> wrote:

>  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.
>
> I still have to start the screen session at boot, and I don’t have a clue
> on how to do so.
>
>
>
> Any suggestions? (Reverting to win server is out of the question) J
>
>
>
> Regards
>
> HotRod
>
>
>
> *From:* Oliver Warburton [mailto:olly at inx-gaming.co.uk]
> *Sent:* 14. desember 2009 21:58
> *To:* Call of Duty server admin list.
> *Subject:* Re: [cod] Autostart COD4/WaW linux server at boot
>
>
>
> There are several options.
>
>
>
> Using screen isn't a bad idea- have you checked that?
>
>
>
> Oliver Warburton
>
> Managing Director
>
> INX-Network LTD
>
>
>
> INX-Gaming.com
>
> www.inx-gaming.com
>
>
>
> On 14 Dec 2009, at 20:52, Frode L wrote:
>
>
>
>   Hi I’m a bit newbie when it comes to nix servers and I really need some
> help.
>
> I have been looking all over the net for a tutorial on this subject,
> hopefully I have found the right spot.
>
>
>
> Anyone got a good tutorial or can help me to get a COD4 or WaW linux server
> to start at boot?
>
> I got the server running, but so far in a putty window and I can’t have it
> running like that.
>
>
>
> The server is running on a CentOS box with Webmin, Putty and local access,
> no GUI other than the Webmin.
>
>
>
> All help would be appreciated..
>
>
>
> Regards
>
> HotRod
>
> _______________________________________________
> cod mailing list
> cod at icculus.org
> http://icculus.org/mailman/listinfo/cod
>
>
>
> _______________________________________________
> cod mailing list
> cod at icculus.org
> http://icculus.org/mailman/listinfo/cod
>
>


-- 
Peter Fetterer
KB3GTN

The force is like duct tape.
It has a light side and a darkside
and binds the universe together.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20091214/ef8a146e/attachment.htm>


More information about the cod mailing list