PDA

View Full Version : Mulitple Mohaa Servers 1 machine


|SOPS|VadimCK
01-28-2007, 11:23 AM
i was wondering how to run muliple mohaa servers with different main folders and port numbers. how can i start and stop them as if they were a service. (ie /etc/init.d/mohaa start). Im currently running mandriva linux.

Thanks,
VadimCK

GaSplat
01-28-2007, 01:27 PM
Step one is to copy your MOHAA folder to MOHAA2 and MOHAA3 (to run 3 servers for example). Nowyou can run each one as a separate program with its own mods, config and startup command.

Using different ports is easy. Do a +set net_port 123456 (use different numbers here, about 10 apart as MOH will actually use more than one port) on your start up command - you can set it in the config file but I always had more luck doing it on the start up. You can also set multiple IPs assuming the server has multiple IPs.

The guides section for MOH has a couple really good articles you should check out. Bull's guide shows a command line and config (including setting the port). There is also an article on a Linux keep alive script you might want.

As to kicking off the script on a reboot - here is one article (http://www.linux.com/article.pl?sid=06/01/03/1728227)that may help you out - Google lists a lot of resources. Here is a really good article about writing a daemon (http://linuxboxadmin.com/articles/bashdaemon.php)script (replace his echo foobar commands with the launch the server command). It also talks about screen and how to use it - a real must for the server admin.

|SOPS|VadimCK
01-28-2007, 01:57 PM
thanks, man.
ill check it out. you dont know how little der is on mohaa servers on da web.

|SOPS|VadimCK
01-29-2007, 11:57 AM
thanks it all works!! i just used the keep alive script and used it to start/stop my server. Sceen is VERY cool!! Its a definate must to all Linux users!! Another question: My friend wants to host a mohha server for his clan and only has a 2mb upload speed how big a server could he host?? (slots)

GaSplat
01-29-2007, 08:27 PM
Here is a guide (http://www.fpsadmin.com/forum/showthread.php?t=9016)Rudedog did for calculating max rate. Max rate can be used to tweak performance by the number of users. While his example uses a max rate of 2100, I seem to recall 10000 being the default, and you will get poorer performance with a lower max rate. You can experiment to see what works best in trading off between lag and just the overall smoothness of the server.

Based on the formula, if you truly have a 2mb upload, you could host 25 slots with a max rate of 10000.

Keep in mind that rcon tends to flake out over 17 slots (the basic game engine was written at a time when 16 slots was a good sized server). When rcon flakes out, the server will still run but it will not respond to rcon commands until the box is rebooted (yup, stopping and restarting the game server itself won't fix it). It is not automatic, but eventually most large servers hit that bug.

You're right, the Screen program for Linux rocks!

|SOPS|VadimCK
01-31-2007, 09:54 AM
Thanks, FPS admin RULES.
So in reality he could host a 20man server wit a decent ping?

That rcon after 17man really sucks is their any fix for this. How do big hosting companys get around it, their hardly going to restart their server box with 7 mohaa servers on it just to get rcon working 4 u.

Lastly, do you have any banner i could put on my clans website because FPS admin rules and id like to say thanks 4 helpin me out!!

GaSplat
02-01-2007, 11:08 PM
There really is no fix to the rcon problem - its part of the core Q3 game engine.

I'm sure Rudedog (site owner and admin) can hook you up with the link info :D

Glad we can help.

payableondeath
02-11-2007, 03:35 AM
That rcon after 17man really sucks is their any fix for this. How do big hosting companys get around it, their hardly going to restart their server box with 7 mohaa servers on it just to get rcon working 4 u.


well if they wont reboot the box just to get your rcon working it would be a good idea to move way from them ;)

the way i see it is if 1 server loses rcon the rest will soon follow so restarting for one customer will benefit all customers on that box
i have even had it where all servers on one box lost it round the same time, allthou i only seem to see it on windows, doesnt seem to be a problem when the server is hosted on linux, so thats about the only way around it

|SOPS|VadimCK
02-12-2007, 11:13 AM
i would be hosting it myself just if we were in a match and lost rcon this would suck so i was wondering if there was a fix but if its deep in game code den obviously no.