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

Separate how signals work for stop vs. restart actions #71

Closed
wants to merge 1 commit into from

Conversation

pnomolos
Copy link

@pnomolos pnomolos commented Mar 1, 2020

I have never written Go before, so what I've done may not be very idiomatic (pretty much copied the stop-signal related code), but hopefully it's still useful.

I'm curious what the thought would be on having a general overmind signal {process_name} [signal] command might be (rather than having to track PIDs down)?

@DarthSim
Copy link
Owner

Hi,
Could you describe a case where this would be useful?

@pnomolos
Copy link
Author

In my case because I’m using Puma and want to send USR2 for restart and INT to stop (https://github.com/puma/puma/blob/master/docs/signals.md)

@DarthSim
Copy link
Owner

In this case, the signal command would be more applicable. The restart command expects a process to exit, but USR2 doesn't stop Puma, so it will break restart behavior.

@pnomolos
Copy link
Author

Hi @DarthSim, thanks, I guess that is what I’m looking for. A potential request, then, for the ability to add custom signal handlers - such as “overmind reload” - which you can customize the signals for (because Sidekiq takes a different signal than Puma does for a code reload). That being said, I could probably achieve that via clever use of shell aliases or functions rather than adding more code to Overmind :)

@DarthSim
Copy link
Owner

Ok, since we agree here, I'll close this PR. Feel free to open a new one with overmind signal command, this would be a great feature.

@DarthSim DarthSim closed this Mar 23, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants