Author Topic: Setting up multiple servers.  (Read 4817 times)

Neo(F)

  • Posts: 34
  • Turrets: +2/-0
Setting up multiple servers.
« on: May 27, 2008, 06:57:54 pm »
Yes, i have used search ;), and i know it is possible.
But if i have a dedicated server somewhere and i control it with putty, i have a few questions about it.
If you start a tremulous server will this run in terminal(wich would make it confusing to run multiple servers.)or in seperate windows(wich i don't know how to view with putty).
I don't have the dedicated serverbox yet so i can't test anything, i just wanted to get some information before wasting a bunch of money.


David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Setting up multiple servers.
« Reply #1 on: May 27, 2008, 09:35:29 pm »
I assume your talking about a linux box, as a windows dedi is stupid.
The common way is make a user for each server, and run each server on its own port.  The different users give them different home directory's allowing easy configuration.
To keep it running without you having to keep putty open you can use screen, which allows you to start the server, detach it, and then connect again later.
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.

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Re: Setting up multiple servers.
« Reply #2 on: May 28, 2008, 02:59:30 am »
I have got a readme I provided to Gamez-Host members.
I'll quote it in a bit when I find it.

If you do not know putty nor know how to setup directories to run multiple servers then your going to have a hard time.
Also if you are not root nor have root access you will need to grant files permission to be read, written, and run. <<< Be sure this is done first.

World Wide Server Host

Neo(F)

  • Posts: 34
  • Turrets: +2/-0
Re: Setting up multiple servers.
« Reply #3 on: May 28, 2008, 11:55:36 am »
i know all the stuff have full acces etc.
It is running on linux and i know the commands how to set up different server with different ports etc.
I was just wondering if you start two trem servers what would happen.
Would they open in other windows or just run within terminal.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Setting up multiple servers.
« Reply #4 on: May 28, 2008, 05:55:58 pm »
There are no windows.  The server shouldn't even have X and the other windowing stuff installed, and tremded its self has no GUI.
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.

Neo(F)

  • Posts: 34
  • Turrets: +2/-0
Re: Setting up multiple servers.
« Reply #5 on: May 28, 2008, 06:36:45 pm »
yeah...
I still don't know how it works though. :-\

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Setting up multiple servers.
« Reply #6 on: May 28, 2008, 08:35:44 pm »
When you run the server, or any process, it is attached to the terminal.  When the terminal dies, it dies too.
To keep the server running without you keeping the putty window open, you have to run it detached from said putty window.  As we assume you want to keep access to the process so you can administrate the server, you need to use tools such as GNU screen.
Easiest way:
Log in as you.
type 'screen -S server1'
it should then pop up with the same prompt as before etc.
do 'exec su server1s username' to switch user.
cd to the right folder.
start the server as per normal, with exec in front of it. (so 'exec tremded +net_port 12345 +whatever)
do Ctrl+A+D and it should go back to your old prompt.
log out, log back in, do whatever else, then do 'screen -r server1' and it should be back to your server.

Just be careful to do ^AD when your finished watching the console, not ^C, killing servers is no fun.
« Last Edit: May 29, 2008, 11:38:38 am by 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.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Setting up multiple servers.
« Reply #7 on: May 29, 2008, 01:58:35 am »
Just be careful to do ^D when your finished watching the console, not ^C, killing servers is no fun.
^ad
Need help? Ask intelligently. Please share solutions you find.

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

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Setting up multiple servers.
« Reply #8 on: May 29, 2008, 11:39:03 am »
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.