Open LSL1337 opened 4 years ago
@LSL1337 Well you are pointing out something that needs to be clarified and fixed.
As discussed with you in #37 and especially in this comment, the way server logs are handled need to be fixed.
There a many things to consider here:
fs_homepath
and fs_basepath
works by default and how it should be setup (see #33);Putting it all together, I'm not sure how to properly handle logs ! Any advices on that matter ?
Hi,
I run my docker cod2 server from the zpam mod folder (post arguments : +set fs_game zpam) In that case, if I mount the following folder to my host machine to whereever, I have access to the 2 server config files: /home/cod2/.callofduty2/zpam
this folder, or even the main folder is not mounted by default, so it can not be reached by the default volume mappings (I think)
server log file is not in the game folder. maybe the mounts are misconfigured?
Server "main" folder volume
VOLUME [ "/home/${SERVER_USER}/main" ]
redirect server multiplayer logs to container stdout
RUN mkdir -p /home/${SERVER_USER}/ .callofduty2 / main/ \ && ln -sf /dev/stdout /home/${SERVER_USER}/ .callofduty2 / main/games_mp.log
I'm not sure, maybe the bold part can be removed? and anyway, I don't think this is preferable to hardcode a log file, when the mods/configs can be executed from multiple directories (eg. pam, zombie, etc)