-
-
Notifications
You must be signed in to change notification settings - Fork 853
Description
User story
As a Garry's mod server owner, I want the "startparameters" option in the instance config for my gmae server to append values to the default srcds.exe command line arguments, not override them.
Game
Garry's Mod
Linux distro
Ubuntu 24.04
Command
command: start
Further information
Per the documentation: https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters,
I would expect any values added to the "startparameters" field in the instance config file (/lgsm/config-lgsm/myserver/myserver.cfg) to be APPENDED to the srcds.exe command line arguments, not override them. The latter seems to be happening.
Before adding my own "startparameters" value (these are the results of running the details command):
./srcds_run -game garrysmod -strictportbind -ip 0.0.0.0 -port 27015 -tickrate 66 +host_workshop_collection FAKEWORKSHOPCOLLENTION +clientport 27005 +tv_port 27020 +gamemode terrortown +map gm_construct +sv_setsteamaccount FAKESTEAMACCOUNT +servercfgfile gmodserver.cfg -maxplayers 16 -disableluarefresh
After adding a value of "-authkey AUTHKEY" to "startparameters":
./srcds_run -authkey AUTHKEY
As you can see, all defaults are gone. The expected result is like so:
./srcds_run -game garrysmod -strictportbind -ip 0.0.0.0 -port 27015 -tickrate 66 +host_workshop_collection FAKEWORKSHOPCOLLENTION +clientport 27005 +tv_port 27020 +gamemode terrortown +map gm_construct +sv_setsteamaccount FAKESTEAMACCOUNT +servercfgfile gmodserver.cfg -maxplayers 16 -disableluarefresh -authkey AUTHKEY
Am I missing something or am I correct in thinking this a bug?
Relevant log output
Steps to reproduce
- Edit your LGSM instance config (yourserver.cfg)
- Add a "startparameters" value, e.g.
startparameters="-authkey FAKEAUTHKEY" - Restart the server
- Run the
detailscommand (./yoursever details) - See that the "Command-line Parameters" section is now only displaying your change without the defaults.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status