Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Request for new gameserver log command for docker logs #21

Open
AlexCloudDev opened this issue Feb 13, 2021 · 1 comment
Open

Request for new gameserver log command for docker logs #21

AlexCloudDev opened this issue Feb 13, 2021 · 1 comment

Comments

@AlexCloudDev
Copy link

Hello,
I'm trying to help out with a new approach for docker container integration.
I made some progress so far, but i have to overcome some limitations of docker/LinuxGSM:

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, i can't use it.
Therefor it would be perfect, if some gameserver log command would exist, that outputs the gameserver logs into the shell like
gameserver debug does and runs as long as the gameserver does.

Then, the run.sh could look like this:
#!/bin/bash
....
su -c "gameserver start" $user
su -c "gameserver log" $user

With this aproach, docker logs -f gameserver-container would flawlessly provide all the logging from the gameserver.

Cheers

@dgibbs64
Copy link
Member

GameServerManagers/LinuxGSM#3244

@jusito jusito mentioned this issue Dec 1, 2021
18 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants