Author Topic: Multiple Servers  (Read 6036 times)

hosler

  • Posts: 29
  • Turrets: +1/-2
Multiple Servers
« on: November 12, 2008, 05:49:51 pm »
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
« Last Edit: December 02, 2008, 12:37:37 am by Paradox »

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Multiple Servers
« Reply #1 on: November 12, 2008, 07:00:27 pm »
One user per server.
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

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Multiple Servers
« Reply #2 on: November 12, 2008, 10:17:55 pm »
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

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Multiple Servers
« Reply #3 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Multiple Servers
« Reply #4 on: November 13, 2008, 02:31: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#msg169333
Ok 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

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Multiple Servers
« Reply #5 on: November 13, 2008, 03:24:24 am »
You'd just have to fiddle with fs_home, I imagine.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Multiple Servers
« Reply #6 on: November 13, 2008, 03:28:35 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#msg169333
Ok 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

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: Multiple Servers
« Reply #7 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. 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

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Multiple Servers
« Reply #8 on: November 13, 2008, 05:49:33 am »
there'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.
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.

Thats what we need, helpful players, not more powerful admins.

Archangel

  • Guest
Re: Multiple Servers
« Reply #9 on: November 13, 2008, 01:46:32 pm »
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

  • Posts: 2737
  • Turrets: +291/-295
Re: Multiple Servers
« Reply #10 on: November 13, 2008, 07:51:27 pm »
Using the same autogen_server.cfg or admin.dat would be rather dumb imo.
so you set fs_homepath?
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#msg169333
Ok 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

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: Multiple Servers
« Reply #11 on: December 01, 2008, 04:17:43 pm »
My autogen_server.cfg is a symlink to /dev/null anyway :)
benmachine