-
-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command gameserver log #3244
Comments
so my thought would be something as simple as Alternatively, we could create a new command like |
Hello, |
Since there is a renewed interest in the docker container I will be spending some time on trying to get it to a production state that can be supported. I am going to need some support from docker experts :) |
I'm far from being a docker expert, but i would like to help. For a public distribution of the images over hub.docker, we could use different tags for different games: Another approach would be to build a uniform, unspecific image just with the linuxGSM script in the first place and install the gameserver files later via ENV at run.sh runtime. Also i made the whole dir where all files are downloaded a volume/host share, to give the gameserver's world/savegames and settings persistence. How can i help? |
User Story
As a volunteer trying to help and improve the Docker container implementation, I want a new command like gameserver log to output the gameserver log into stdout like gameserver debug does.
Basic info
Further Information
I use a run.sh as entrypoint and therefore i need a proper PID 1 process for the container.
Due to the fact, that gameserver start spawns the server as new process, it can't be used.
Therefor it would be perfect, if some gameserver log command would exist, that outputs continuously the gameserver logs into stdout like gameserver debug does and runs as long as the gameserver.
Then, the run.sh called as entrypoint could look like this:
#!/bin/bash
....
su -c "gameserver start" $user
su -c "gameserver log" $user
<------ running as long as the gameserver runsWith this approach, the docker logs command would flawlessly provide all the logging from the gameserver and the container would be stopped if the gameserver is.
And maybe a gameserver log command could provide handy information in other use cases than in a container environment.
Cheers
The text was updated successfully, but these errors were encountered: