Raised This Month: $32 Target: $400
 8% 

Run multiple servers at once


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 12-04-2016 , 16:41   Run multiple servers at once
Reply With Quote #1

Hello,

I am using ubuntu 14.14 to host my csgo servers but I want to run multiple servers at once. How do I startup another server without killing the server that's currently running. And how do I exit and enter a console of a running server.

Thanks.
lilpetri is offline
YoloMySolo
Member
Join Date: Jan 2016
Location: Mum's Basement
Old 12-04-2016 , 16:43   Re: Run multiple servers at once
Reply With Quote #2

Create another user and redo the process
__________________
YoloMySolo is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 12-04-2016 , 17:06   Re: Run multiple servers at once
Reply With Quote #3

Quote:
Originally Posted by YoloMySolo View Post
Create another user and redo the process
Thanks for your reply. I still have a couple of questions.
- will closing putty shutdown the currently running server
- how do I exit the server console without it shutting down.
- how do I enter a running server console.
Thanks for your time
lilpetri is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 12-04-2016 , 17:13   Re: Run multiple servers at once
Reply With Quote #4

You're better off using this: http://gameservermanagers.com/lgsm/csgoserver/
You can otherwise do it with screen or tmux.
Example:
Code:
screen -A -m -d -L -S csgoserver ./srcds_run -game csgo -usercon +game_type 0 +game_mode 0 +mapgroup mg_allclassic +map de_dust2
Maxximou5 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 12-04-2016 , 17:16   Re: Run multiple servers at once
Reply With Quote #5

Use this:
screen -dmSL MyFirstServer ./srcds_run -game csgo -console -usercon -secure -nohltv +ip xxx.xxx.xxx.xxx +hostport 27015 -maxplayers_override 32 +map mg_metal_course_2 +clientport 28015 -tickrate 128 +game_mode 0 +game_type 0 -stringtables +sv_setsteamaccount xxxxxxxxxxxxxxxx

You can run serveral servers under one user (using screen).

To "open" screen console:

screen -r MyFirstServer

To "hide" screen console:

CTRL+A+Z

To "close" screen console (kill server):
screen -S MyFirstServer -X quit

If you got this errror: -bash: screen: command not found:
sudo apt-get install screen
__________________
NomisCZ is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-04-2016 , 18:00   Re: Run multiple servers at once
Reply With Quote #6

Using the same install directory for multiple servers is a bad idea just to be clear. Make sure they are all different directorys.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
YoloMySolo
Member
Join Date: Jan 2016
Location: Mum's Basement
Old 12-04-2016 , 20:12   Re: Run multiple servers at once
Reply With Quote #7

I would also recommend using LGSM. Great for beginners or people who are lazy, like me.
__________________
YoloMySolo is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 12-05-2016 , 07:46   Re: Run multiple servers at once
Reply With Quote #8

Thanks everybody for the replies!
lilpetri is offline
StealthGus
Junior Member
Join Date: Mar 2015
Old 12-06-2016 , 01:54   Re: Run multiple servers at once
Reply With Quote #9

Screen is disgusting for large scale servers, imo.

Creating a .conf file in /etc/init does wonders.

I run about 40ish servers across the source games, trust me, it's a heck of a lot easier to use a .conf file than it is to use screen.

Last edited by StealthGus; 12-06-2016 at 01:58.
StealthGus is offline
lugui
Senior Member
Join Date: Feb 2016
Location: GetClientAbsOrigin();
Old 12-18-2016 , 15:21   Re: Run multiple servers at once
Reply With Quote #10

I run my servers using tmux, you can just run 1 server per screen and send a command for every screen at the same time
lugui is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode