i want 1 serverfiles 2 instance. when i do 2 service dstserver and dstserver-2, they both apply setting from /lgsm/config-lgsm/dstserver/dst-server-Master.cfg.
i can make setting by hand, but on start, for example:
dstserver, if in dst-server-Master.cfg shard="Master", run shard Master - ok
dstserver-2, in dst-server-Master.cfg all the same shard="Master" of course runs shard Master - not ok.
dstserver-2 ignoring any cfg besides dst-server-Master.cfg.
if i before start dstserver make dst-server-Master.cfg how i want, then start dstserver, then change dst-server-Master.cfg for dstserver-2, run dstserver-2. Servers works ok! How is do it automatic?
Just duplicate your config file with the right name.
Doc:
https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Game-Servers
https://github.com/GameServerManagers/LinuxGSM/wiki/LinuxGSM-Config-Files
in csgoserver then i do second time - ./linuxgsm.sh i, script do csgoserver-2 and csgoserver-2.cfg and all works fine. In dstserver - first time - dstserver and dst-server-Master.cfg, in second time do nothing, I try duplicate config file, what name is right? i try:
for dstserver-2
dstserver-2.cfg, dst-server-dstserver-2.cfg, dst-server-2.cfg. dstserver.sh this files ignore.
if question only in name, what config file name is for dstserver-2? Please.
and thanks for help, very much.
I have same issue. Can't find a way to create proper config for it. What is the reason there is special behavior which doesn't match wiki page?
@Fedcomp #1554
This is the first result in google and so i will post temporary solution:
open lgsm/config-default/config-lgsm/yourserver/_default.cfg and comment out
servicename="dst-server-${shard}"
to
#servicename="dst-server-${shard}"
then it will match wiki behavior. I don't understand why that line is in the config at all.
Because the config structure was completely different when this was implemented.
Thanks @Fedcomp for your suggestion. I make the Cave work.
Hope that will be fixed soon :-)
@marvinlehmann is there anything further required with this?
@dgibbs64 https://github.com/GameServerManagers/LinuxGSM/pull/1554#issuecomment-323476998
The servercfg path contains "installation vars" and must be set manually currently because they aren't wrapped in a function like parms.
Most helpful comment
This is the first result in google and so i will post temporary solution:
open
lgsm/config-default/config-lgsm/yourserver/_default.cfgand comment outto
then it will match wiki behavior. I don't understand why that line is in the config at all.