Multiple RTCW servers on Redhat 9
I am running RTCW on Redhat 9. I got that figured out and it works fine. I have the game startup commands in the rc.local file, this works fine to start one server. If I put commands in there to start a second server Only one will start.
I can run multiple servers if I start them in seperate telnet or terminal sessions but If I close the terminal or telnet session the server closes as well.
(I have the game installed twice, in separate directories and the commands in the rc.local change to the appropriate directories to start each server but it seems like I am getting a mixture of both configs and only one server starts)
So.... How do I run multiple servers?
Thanks for your help.
Run the prog with & at the end to send it to the background. For instance, say the command is "rtcw" then simply type "rtcw &". You would see something like this:
$ rtcw &
This will free up the terminal so that you could run it again:
$ rtcw &
If for any reason you need to send the process back to the foreground you can use the fg command.
For more information search www.google.com/linux for "process control" :-)
Hi, could i get a copy of the init script you're using. I tried google but couldn't find much.
I would really appreciate it.
I'm not using an init script, and you don't have to use one either. If you send a process to the background it's detached from your terminal, and you're free to run another instance, as well as exit out of the terminal without shutting down the process.
The only reason I mentioned google was if you needed information on process control (i.e using ps, top, kill, fg, bg, etc.). For technical documentation on a given command, you can always use "man <command>" to bring up a man page.
If you have any further issues and need real-time troubleshooting, I'd suggest checking out #linuxhelp on irc.freenode.net or irc.undernet.org :D
Running multiple RTCW Servers
Well I tried the & option which did infact put the server in the background, but the server did not actually start. Then I tried the same command with the nohup option instead and that worked.
this command does work and allows me to start multiple servers.
nohup ./wolfded & +set fs_basepath ./ +set net_IP 22.214.171.124 +set net_port 27960 +set com_zoneMegs 30 +set vm_game 0 +set ttycon 0 +exec server.cfg +set fs_game shrubmod
And how can i enable it to come back up when the users use quit with rcon. They might need to use that to load an uploaded map.
I now use daemontools, but this give the problem that it always runs everything as root. And the env settings don't really work(starting it as a specific user)
Problem with running it as root is that most scripts write to /root/.game/script.cfg and use that. So they overwrite each others script, at least with the RPM mod for sof2 they do.
|All times are GMT -5. The time now is 09:34 AM.|