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

How to restart with Einhorn #42

Closed
abramovic opened this issue Jul 3, 2014 · 2 comments
Closed

How to restart with Einhorn #42

abramovic opened this issue Jul 3, 2014 · 2 comments

Comments

@abramovic
Copy link

When using Einhorn I know we can specify a PID file to write to such as "einhorn -e einhorn.pid ./main" but whenever I kill that PID the entire process dies.

How do I get the PID of the worker and not the master so I can do "kill -USR2 PID"

@abramovic
Copy link
Author

Never mind. Just realized I can just use pgrep -n process-name

@zenazn
Copy link
Owner

zenazn commented Jul 6, 2014

To initiate a graceful restart using einhorn, you typically send HUP to the einhorn process itself—einhorn is responsible for sending its children USR2 as appropriate.

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