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

PID File Cleanup #59

Open
pioto opened this issue Jun 17, 2016 · 1 comment
Open

PID File Cleanup #59

pioto opened this issue Jun 17, 2016 · 1 comment

Comments

@pioto
Copy link

pioto commented Jun 17, 2016

Hi,

It seems that, if the container dies unexpectedly (e.g. power loss), it will not restart properly.

The root cause seems to be some PID files left in /opt/graphite/storage/, specifically carbon-cache-a.pid.

It seems that the PID checker code is not robust enough to know that the process died, so it refuses to start it up again.

Since we're running in a Docker container, perhaps an earlier part of the /etc/my_init.d/01_conf_init.sh file could remove those PID files?

@mpareja
Copy link

mpareja commented Jul 13, 2016

For people using volume mounts on the storage directory this further complicates things. It can prevent carbon-cache from starting up on a newly launched container because the PID files from previously launches remain.

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