On my Ubuntu VPS, I’m running two GMod instances from the same srcds directory. One is sandbox, the other is DarkRP.
I want the sandbox to load the default server.cfg, and I want the DarkRP server to load a seperate server.cfg file (server1.cfg). When I try to add the +exec server1.cfg to the DarkRP startup command, it just ignores it. It ignores it even if I put the .cfg in the srcds_run directory. I’ve read a lot of differing, conflicting, and outdated information about how to do something like this but not a lot pertains to running two different servers with two different config files.
Can anyone tell me the correct way to use +exec or where to place the other server.cfg in the startup command so DarkRP uses the right cfg file? Thank you!
For reference here are the startup commands for each server:
screen -A -m -d -S sandbox ./srcds_run -game garrysmod +maxplayers 24 +map gm_construct +host_workshop_collection 260503847 -authkey *snip* +ip 18.104.22.168
screen -A -m -d -S darkrp ./srcds_run -game garrysmod -port 27016 +maxplayers 32 +map rp_downtown_v4c_v2 +host_workshop_collection 260503847 -authkey *snip* +ip 22.214.171.124 +gamemode darkrp +exec server1.cfg
One other unrelated question: when a server has 0 players in it, it doesn’t seem to appear on the first page of the server browser? And if you search for it, it comes up greyed out? Or does it being greyed out have to do with me hosting two servers on one install for some reason? Before I added DarkRP my server pretty much always had a 5/5 rating for me, even with noone in it, now it’s 3/5.