Tremulous Forum
Community => Servers => Topic started by: hosler 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
-
One user per server.
-
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).
-
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.
-
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.
-
You'd just have to fiddle with fs_home, I imagine.
-
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.
-
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.
-
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.
-
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 :]
-
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)
-
My autogen_server.cfg is a symlink to /dev/null anyway :)