SRCDS Steam group


Multiple Servers from one install
#1
Does anyone know if it's possible to specify things from the command line such as the server.cfg file or map rotation file so that you can run multiple instances from one installation of srcds? I want to run about 4-6 servers from one machine, and I'd love to avoid having to maintain 4-6 installations of srcds. The only problem is that I want each server to have a different config file and a different map rotation (and possibly even different SourceMod plugins active, but I can figure that out later after these other things). I know that if I only change the port on the command line, all the other configuration stuff will be identical between the servers. Anybody know how to change that?

As a side question, is there a list anywhere of the command line options (like +map, +port, etc.) that are accepted by the srcds program? The help option doesn't have all of them.
Reply
#2
Yes,yes and yes!
http://forums.srcds.com/viewtopic/10860
http://forums.srcds.com/viewtopic/8056
http://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_4
"the box said 'requires windows xp or better'. so i installed linux"
Linux Ubuntu 9.04 Server 2.6.30-vanilla #1 SMP PREEMPT x86_64
Reply
#3
you could specify some +exec command at command line to execute a specific config file for each server. but this does not give you different map cycles.
I would recommend instead creating "copies" of the servers with symlinks and then change (i.e. unlink and recreate) all files that should be different among the servers. I use this method and it works pretty well.

IIRC you can create such a "copy" with symlinks using "cp -s -r"
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#4
Using symlinks is the best way to go if you want to use one install for one installation.
Reply
#5
Thanks for the suggestions guys! And thanks for the links janne, I managed to miss those when I was hunting around before posting. This is essentially what I want to do. Only one install to maintain.
Reply
#6
I have done the folowing. I have splitted up the install in diff files:

server.cfg
Code:
exec banned_user.cfg
exec banned_ip.cfg

server1.cfg <-- this is the old server.cfg with normal content

Commandline that i start my server with:

Code:
./srcds_run -console -game cstrike -port 27015 +ip 123.123.123.123 +map de_dust +maxplayers 14 +exec server1.cfg

Motd + Mapcycle
Add this to your server1.cfg
Code:
// map cycle for this server
mapcyclefile "mapcycleserver1.cfg"

// motd file for this server
// Note: You could simply have this as motd.txt in all config files, so that all servers share the same config file
// This is just an example so you know how to specify individual ones if necessary
motdfile "motdserver1.txt"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)