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

Stop specific processes before terminating the rest of the processes #134

Open
lunaisnotaboy opened this issue Aug 10, 2022 · 4 comments
Open

Comments

@lunaisnotaboy
Copy link

lunaisnotaboy commented Aug 10, 2022

So this may be a weird request, but I have a dilemma. I have an application that requires patched versions of Redis and Memcached, so at checkout the setup script builds both of them from source. Because of this, both Redis and Memcached are started with the rest of the process in the development Procfile.

Would it be possible when Overmind receives a Ctrl+C to stop a program (in this case Rails and Sidekiq) before stopping Redis and Memcached so that the programs can store their data properly before shutdown?

Sorry for such a weird request.

@lunaisnotaboy
Copy link
Author

Oh, I probably should've included my Procfile in the initial request, sorry!

web: bin/rails s -p 3000
webpacker: bin/webpacker-dev-server
sidekiq: bin/sidekiq
meilisearch: bin/meilisearch --master-key="apikey"
memcached: bin/memcached -vv
redis: bin/redis-server

@DarthSim
Copy link
Owner

Hey @lunaisnotaboy!
This feature requires rewriting too much stuff for such a niche feature. So I'd not add it right away but I'll keep this feature request open just in case I or somebody comes up with a good solution.

@lunaisnotaboy
Copy link
Author

Ah, okay. Thanks!

@tenpaiyomi
Copy link

Just making a note that I'm running into this exact situation as well of needing a few processes that are reliant on by others to be gracefully stopped before the other processes. Not sure of a real solution at the point, I'll noodle on it a bit, but could definitely see the value in having some way to say "don't send the kill signal to process X until after process Y has fully shut down."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants