Results 1 to 9 of 9

Thread: Start restart stop game servers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    My start script:

    PHP Code:
    cd /home/cod2server/
    screen ----S cod2server ./cod2_lnxded +set fs_game main +exec server.cfg +map_rotate +set net_port 28960 +set sv_maxclients 16 
    My restart script:

    PHP Code:
    cd /home/cod2server/
    ./
    stop.sh
    ./start.sh 
    My stop script:

    PHP Code:
    screen -S cod2server -X quit 
    And from the web:

    PHP Code:
    <a href="/start.php">Start CoD2</a>
    <
    a href="/restart.php">Restart CoD2</a>
    <
    a href="/stop.php">Stop CoD2</a
    PHP Code:
    <?php
    shell_exec
    ('cd /home/cod2server/ && ./start.sh');
    ?>

    etc.. in other files
    Its only start servers.

  2. The Following User Says Thank You to thOuMta For This Useful Post:

    YuriJurek (4th September 2013)

Posting Permissions

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