Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Healthcheck #11

Open
Freekers opened this issue Apr 27, 2020 · 1 comment
Open

Add Healthcheck #11

Freekers opened this issue Apr 27, 2020 · 1 comment

Comments

@Freekers
Copy link

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 :)

@qdm12
Copy link
Owner

qdm12 commented Apr 27, 2020

Yes that's definitely something I wanted to add next 😉 Thanks!

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

No branches or pull requests

2 participants