GameServerManagers / LinuxGSM-Docker

The Official LinuxGSM Docker image (experimental)
https://linuxgsm.com
MIT License
168 stars 73 forks source link

[Enhancement] Allow tail'd folder to be an ENV variable via Docker #75

Open irobot73 opened 2 years ago

irobot73 commented 2 years ago

Setting up a Project Zomboid dedicated server & all seems to be running well.

Only gripe I have is the log path that's TAIL'd via 'entrypoint.sh' is LGSM's...the 5min MONITOR log

What I see today:

...
Aug 28 18:05:13.657 pzserver: MONITOR: INFO: * Server CPU Model: AMD Ryzen 3 3100 4-Core Processor
Aug 28 18:05:13.659 pzserver: MONITOR: INFO: * Server CPU Frequency: 3600.000
Aug 28 18:05:13.660 pzserver: MONITOR: INFO: * Server RAM: 32GB
Aug 28 18:05:13.661 pzserver: MONITOR: INFO: * Server Disk: 196G
Aug 28 18:05:13.667 pzserver: MONITOR: INFO: LinuxGSM version: v22.1.0
Aug 28 18:05:13.668 pzserver: MONITOR: PASS: core_exit.sh exiting with code: 0
...

Would be optimal, to me, to be able to utilize an ENV variable, instead of redirecting/merging the .../Zomboid/Logs via VOLUME into the LGSM 'log/script' folder (hacky, but SHOULD work)

FROM:

./${GAMESERVER} details

tail -f log/script/*

# with no command, just spawn a running container suitable for exec's

TO:

./${GAMESERVER} details

tail -f {LOGPATHTOTAIL}/*

# with no command, just spawn a running container suitable for exec's

...unless I'm missing something quiet obvious (Docker being still relatively new for me)

Claiyc commented 2 years ago

LGSM Docker is currently being entirely refactored. See #43