News:

Come Chat with us live! Learn how HERE!

Main Menu

Multiple Servers

Started by hosler, November 12, 2008, 05:49:51 PM

hosler

How many of you run more than one trem server on a box? Do you just run the trem server from the users home dir?

Do this image shit anymore, and earn a ban -Paradox

David

Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Lakitu7

Which doesn't have to be the case, but it's easier that way. Set up a user for each server, put them all the in the same group, then give your own user access to that group. You can use a common fs_base directory pretty easily, but you need different homepaths (which would by default be in those users' home directories).

Undeference

Of 200 protocol 69 servers queried, 75 were hosted on the same 26 IP addresses. The other 125 servers had unique IP addresses. That doesn't actually say how many servers are run on the same system, only that it is fairly common.

I run two servers with the same user and I find it more convenient than using separate users. But maybe that's just me.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

kevlarman

Quote from: Undeference on November 13, 2008, 02:17:07 AM
Of 200 protocol 69 servers queried, 75 were hosted on the same 26 IP addresses. The other 125 servers had unique IP addresses. That doesn't actually say how many servers are run on the same system, only that it is fairly common.

I run two servers with the same user and I find it more convenient than using separate users. But maybe that's just me.
there's a race condition on autogen.cfg and possibly admin.dat if you do that.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Lakitu7

You'd just have to fiddle with fs_home, I imagine.

kevlarman

Quote from: Lakitu7 on November 13, 2008, 03:24:24 AM
You'd just have to fiddle with fs_home, I imagine.
in which case it's faster to useradd -m -k /path/to/existing/server newuser, it's also a bit easier to manage multiuser screens if each server has its own user.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Amanieu

Actually I like it better to have all my servers in one screen, makes it easier to switch between servers. I just have a startup script for each server which gives each of them a separate homepath.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

Undeference

Quote from: kevlarman on November 13, 2008, 02:31:07 AMthere's a race condition on autogen.cfg and possibly admin.dat if you do that.
Using the same autogen_server.cfg or admin.dat would be rather dumb imo.
Quote from: Amanieu on November 13, 2008, 05:39:42 AM
Actually I like it better to have all my servers in one screen, makes it easier to switch between servers.
Exactly.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

Archangel

personally, i add a user (trem_*), and set their shell to a script that reattaches screen if the screen is running, otherwise starts the trem server. therefore my clients can just ssh into the console :]

kevlarman

Quote from: Undeference on November 13, 2008, 05:49:33 AM
Using the same autogen_server.cfg or admin.dat would be rather dumb imo.
so you set fs_homepath?
Quote from: Undeference on November 13, 2008, 05:49:33 AM
Quote from: Amanieu on November 13, 2008, 05:39:42 AM
Actually I like it better to have all my servers in one screen, makes it easier to switch between servers.
Exactly.
this doesn't work if the users allowed to attach to each screen are different. (unless you spend a lot of time setting up the screen permissions)
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

benmachine

My autogen_server.cfg is a symlink to /dev/null anyway :)
benmachine