Dedicated Server Run Terminal all the time
Hi,
I have a dedicated server for hosting call of duty (game), the server is in a remote location: Quick spec: CentOS 3.5 Webmin + DirectAdmin P3 733MHz 128MB RAM + 512MB Swap cod_lnxded patched v1.5 I use ZOC ssh terminal (windows) to control the server, the problem is I when I close zoc or disconnect the ssh session ends!of course, turning the game server off!!. But this is no good for a 24/7 dedicated game server, as my pc is not always on, to keep the session on. What I would like to do if possible is: 1. Automatically start the server on BOOT UP using this command ./cod_lnxded +set dedicated 2 +exec server.cfg Then when the server console is up and running I need to do this: pb_sv_enable g_gametype sd map mp_carentan And that allows users to connect. Is there a way of setting up once and never doing again? Many thanks |
I think that's a redhat derivative you're using, so you can put commands to be executed at bootup in /etc/rc.local (I think you might have to chmod +x /etc/rc.local).
As for running those commands once the game server has started, that's going to be specific to the game: perhaps there is a command line option that will let you put the commands that you want to execute into a file and have the game server run all the commands in that file? |
The commands to set the game type I will only need to do once,
the real problem is when I exit zoc the ssh session ends and the game server is turned off!! I just want to be able to run the process without having zoc open all the time. Thanks |
As jcspray said, try adding cmds to /etc/rc.local if it exists.
If not, use this sequence: nohup <yourcmdhere> & which will run the game in the background and tell it not to terminate when you logout. |
I have that same problem the game server times out when I close the page in webmin and that command nohup doesnt work for me I dont know why.
|
Just try putting the & symbole after it
For Example: ping localhost & that always worked for me. |
I tried that but it only stays up for about like 1-2 min's
|
All times are GMT -5. The time now is 01:35 AM. |