You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Docker already has an entry in Crontab #4745
I want the crontab entry to be removed so users are able to set their own wihtout having to remove/comment it out every time the container is restarted.
Game
PaperMC
Linux distro
Ubuntu 22.04
Command
command: update
Further information
There is a cron entry in the container by default:
*/60 **** /app/pmcserver update > /dev/null 2>&1
I don't know if this is intentional, but it is very annoying because I'd like to set my own update interval without having to modify the actual application code. I didn't think it was necessary to make an issue for such a small problem. Thanks!
I was certain there are other crontab -related issues already, and there are. At least #4584 and #4508 . IIRC I've seen some discussion in another issue somewhere but can not find it ATM (EDIT: realized the latter has nothing to do with the docker images per se). I'm mentioning these here so that everyone is up to date on the feature / issues and pull requests, so that perhaps a common fix can be found.
I agree the default crontab entry needs to go. It is intrusive, as it interrupts gameplay on servers which do not need to be on the bleeding edge and get frequent updates. The users should decide. Currently, I run 'crontab -r' after each reboot and update of the image, but I feel I should not need to.
I've realized one can set UPDATE_CHECK=0. This is not documented (AFAIK), but will skip creating the crontab on every restart of the container (or set it to some other value if want something else than hourly checks).
I've brewed an implementation for a persistent crontab within the container.
UPDATE_CHECK sets the scheduled update interval (1 to 59 minutes). UPDATE_CHECK=0 turns the scheduled check off, so the container stops writing its own crontab entry on start.
UPDATE_ON_START=false skips the update when the container starts.
That covers setting your own interval or turning the default entry off. A custom crontab still lives inside the container, so it is lost when the container is recreated. Persistent custom crontabs are tracked in #4584 (and GameServerManagers/docker-linuxgsm#94 / #95).
Activity
zuedev commentedon Jan 18, 2025
Which image are you using? I couldn't find any cron entries on the latest GHCR build.
ben-2357 commentedon Jan 18, 2025
Maybe it's because I'm using the Docker Hub image?:
Here's a video showing the latest image.
zuedev commentedon Jan 18, 2025
Never mind, you're right! I was entering the container without specifying the
linuxgsmuser.I agree that having only the docker images preconfigured to update every hour is pretty weird.
I've made a PR for this, hopefully it gets merged!
WildPenquin commentedon Feb 17, 2025
I was certain there are other crontab -related issues already, and there are. At least #4584 and #4508 . IIRC I've seen some discussion in another issue somewhere but can not find it ATM (EDIT: realized the latter has nothing to do with the docker images per se). I'm mentioning these here so that everyone is up to date on the feature / issues and pull requests, so that perhaps a common fix can be found.
I agree the default crontab entry needs to go. It is intrusive, as it interrupts gameplay on servers which do not need to be on the bleeding edge and get frequent updates. The users should decide. Currently, I run 'crontab -r' after each reboot and update of the image, but I feel I should not need to.
romanvoloboev commentedon Jun 11, 2025
any updates on this?? I don't want my server suddenly start autoupdate at the pick online!
WildPenquin commentedon Apr 25, 2026
I've realized one can set
UPDATE_CHECK=0. This is not documented (AFAIK), but will skip creating the crontab on every restart of the container (or set it to some other value if want something else than hourly checks).I've brewed an implementation for a persistent crontab within the container.
dgibbs64 commentedon Oct 9, 2026
The Docker image README now documents the update settings (GameServerManagers/docker-gameserver#155, thanks @WildPenquin):
UPDATE_CHECKsets the scheduled update interval (1 to 59 minutes).UPDATE_CHECK=0turns the scheduled check off, so the container stops writing its own crontab entry on start.UPDATE_ON_START=falseskips the update when the container starts.That covers setting your own interval or turning the default entry off. A custom crontab still lives inside the container, so it is lost when the container is recreated. Persistent custom crontabs are tracked in #4584 (and GameServerManagers/docker-linuxgsm#94 / #95).