Skip to content

[Bug]: Docker already has an entry in Crontab #4745

Closed

Description

@ben-2357

User story

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!

Relevant log output

No response

Steps to reproduce

  1. Use the container lol

Activity

  1. added
    type: bug
    on Jan 10, 2025
  2. zuedev commented on Jan 18, 2025

    @zuedev

    Which image are you using? I couldn't find any cron entries on the latest GHCR build.

  3. ben-2357 commented on Jan 18, 2025

    @ben-2357
    Author

    Maybe it's because I'm using the Docker Hub image?:

    services:
      linuxgsm-pmc-bind:
        image: gameservermanagers/gameserver:pmc
        # image: ghcr.io/gameservermanagers/gameserver:pmc

    Here's a video showing the latest image.

  4. zuedev commented on Jan 18, 2025

    @zuedev

    Never mind, you're right! I was entering the container without specifying the linuxgsm user.

    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!

  5. WildPenquin commented on Feb 17, 2025

    @WildPenquin
    Contributor

    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.

  6. romanvoloboev commented on Jun 11, 2025

    @romanvoloboev

    any updates on this?? I don't want my server suddenly start autoupdate at the pick online!

  7. added theissue type on Jun 26, 2025
  8. WildPenquin commented on Apr 25, 2026

    @WildPenquin
    Contributor

    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.

  9. dgibbs64 commented on Oct 9, 2026

    @dgibbs64
    Member

    The Docker image README now documents the update settings (GameServerManagers/docker-gameserver#155, thanks @WildPenquin):

    • 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).

  10. moved this from 🆕 New Issues to ✅ Done in LinuxGSM Backlogon Oct 9, 2026
  11. added
    engine: lwjgl2
    game: PaperMC
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

command: updatedistro: Ubuntuengine: lwjgl2game: PaperMCinfo: dockeroutcome: issue resolvedtype: bug

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions