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

Signal USR2 kills process #426

Closed
screentan opened this issue Oct 7, 2019 · 2 comments
Closed

Signal USR2 kills process #426

screentan opened this issue Oct 7, 2019 · 2 comments

Comments

@screentan
Copy link

For both 0.12.5 and master on RHEL 7.7 sending a USR2 signal results in the process dying instead of reloading and continuing to run. Given the contrib/carbonapi/rhel/carbonapi.service file it seems that reloading is the intent.

@Civil
Copy link
Member

Civil commented Oct 8, 2019

It supposed to do a graceful restart, however the library that was used for that is deprecated and archived at this moment, probably it's the reason why it's no longer working.

However it would help if you can provide more information on how it dies (e.x. if it's a clean exit, if there is anything in the logs, etc)

@screentan
Copy link
Author

I figured it out. When I started '/usr/local/bin/carbonapi -config /etc/carbonapi/carbonapi.yaml' and then did a 'kill -USR2' it worked correctly and the process ran with a new PID. But doing a 'systemctl reload' failed under systemd. The problem was the PID file path was different between carbonapi.service and carbonapi.yaml. So having those two things set the same by default would help the next the guy.

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