My start script:
My restart script:PHP Code:cd /home/cod2server/
screen -A -m -d -S cod2server ./cod2_lnxded +set fs_game main +exec server.cfg +map_rotate +set net_port 28960 +set sv_maxclients 16
My stop script:PHP Code:cd /home/cod2server/
./stop.sh
./start.sh
And from the web:PHP Code:screen -S cod2server -X quit
PHP Code:<a href="/start.php">Start CoD2</a>
<a href="/restart.php">Restart CoD2</a>
<a href="/stop.php">Stop CoD2</a>
Its only start servers.PHP Code:<?php
shell_exec('cd /home/cod2server/ && ./start.sh');
?>
etc.. in other files



Reply With Quote