-
Notifications
You must be signed in to change notification settings - Fork 72
improvement: let docker do what tmux used to. and define gameserver as an environment variable. #13
base: main
Are you sure you want to change the base?
improvement: let docker do what tmux used to. and define gameserver as an environment variable. #13
Conversation
I've been trying to go through lgsm's source to see if I could avoid the ugly hack "echo Y | ./gameserver debug" but I had no luck. |
it could be possible to add either a new command or a setting to remove tmux |
I guess a command like |
relevant https://github.com/GameServerManagers/LinuxGSM/pull/2026/files
|
I am currently thinking about LinuxGSM commands as arguments might be implemented moving forward so the command might end up being |
also to answer your question there are no issues running your server in debug mode apart from needing an active terminal which shouldn't be an issue in docker |
I like this idea of using command arguments. And yeah, in docker it is expected that applications run in foreground, and if they exit the container itself exits (and docker restarts it if the restart policy says so). On another note: I am working on a separate branch to avoid installing every dependency for every server at once, it's a lot faster to bring up. :D |
Hi, people. I guess there is no easy way to run the server in foreground other than debug mode, right?
However, I did this, and it probably no longer needs tmux. (I don't know LinuxGSM well enough and I only tested Quake2)
If there are nontrivial consequences from running a server permanently in debug mode, please tell me.