Results 1 to 10 of 24

Thread: [CoD2/CoD4] Server auto-restart

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts

    [CoD2/CoD4] Server auto-restart

    Quote Originally Posted by Ni3ls
    Hi man,

    My server keeps shutting down, because of segmentation errors. When you first helped me with setting up libcod on my vps, you made some script that auto restarts the server when it's offline. Can you send me that script again? It was extremely usefull.

    Greetz
    PHP Code:
    #!/bin/bash
    while true
    do
        
    LD_LIBRARY_PATH=. LD_PRELOAD=/path/to/libcod/libcod2_1_0.so /path/to/exe/cod2_lnxded +set fs_basepath /path/to/directory +set fs_homepath /path/to/directory +set fs_game yourmod +set net_ip 999.999.999.999 +set net_port 28960 +set developer 0 +set dedicated 2 +set sv_cracked 1 +exec config.cfg +map_rotate
        sleep 1
    done 
    save as exec.sh

    PHP Code:
    #!/bin/bash

    screen -S serv1 /path/to/exec.sh 
    save as serv1.sh

  2. The Following 3 Users Say Thank You to filthy_freak_ For This Useful Post:

    kung foo man (24th August 2015),Ni3ls (27th August 2015),suck000 (4th July 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •