Skip to content

Add Healthcheck #11

Description

@Freekers

Perhaps you might be interested in the Healthcheck I added to my image. It checks if the COD4 server is still up/responding by sending 'getinfo' via RCON (using netcat) to the server every 30 seconds.
If for some reason the container would still run, but the healthcheck fails (e.g. the CoD4 server process is frozen), the Docker container will be marked as 'unhealthy'. Using a Docker image called 'autoheal' it will automatically restart the container.

Since our repos are too far apart, I cannot do a proper pull request, but feel free to copy the bits you need from my fork :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions