Skip to content

Container user linuxgsm crontab can be saved optionally#94

Open
WildPenquin wants to merge 1 commit intoGameServerManagers:mainfrom
WildPenquin:main
Open

Container user linuxgsm crontab can be saved optionally#94
WildPenquin wants to merge 1 commit intoGameServerManagers:mainfrom
WildPenquin:main

Conversation

@WildPenquin
Copy link
Copy Markdown

This should be transparent to users and requires no intervention if they do not wish to use a custom crontab. Current behavior is retained.

To actually use the custom crontab, the user needs to set LGSM_SAVE_CRONTAB to true. If set to false, the container will function exactly as it functions now. This variable needs to be documented in the downstream (docker image) repository.

@WildPenquin
Copy link
Copy Markdown
Author

WildPenquin commented Apr 26, 2026

I've noticed there used to be similar pull requests previously. However this one is more simple and sometimes setting a crontab within the container is a requested feature. I don't personally need it and I understand if this is not desired for some reason (keeping the Dockerfile simple?).

This will save the crontab in /data/saved-crontab. It is not the cleanest way, and can be seen as a bit hacky, however as the crontabs are in /var/spool, I'm not sure how to make it in a cleaner way, save making a volume under /var/spool/ just for the sake of saving the crontab. And, some users might still be accustomed to changing UPDATE_CHECK.

This should be transparent to users and requires no intervention if they
do not wish to use a custom crontab. Current behavior is retained.

To actually use the custom crontab, the user needs to set
LGSM_SAVE_CRONTAB to true. If set to false, the container will function
exactly as it functions now. This variable needs to be documented in the
downstream (docker image) repository.
@WildPenquin
Copy link
Copy Markdown
Author

This would fix GameServerManagers/LinuxGSM#4584 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant