rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
544 stars 39 forks source link

add possibility to provide a `:kill-command` instead of a `:kill-signal` #78

Open BrunoBonacci opened 9 years ago

BrunoBonacci commented 9 years ago

Hi,

It would be great to have the possibility to provide a command to stop a service. Sometime this is required in order to ensure a clean shutdown of stateful service.

thanks Bruno

rejeep commented 9 years ago

That makes sense. If you are interested in implementing it, I would be happy to merge it. I probably wont do it myself for quite some time as I don't have much time over for open source hacking.

BrunoBonacci commented 9 years ago

I'm don't know much about elisp yet (i'm a Clojure developer) but I will give it a try, maybe asking some directions to you to start off. Anyway I will be off on holiday for the next couple of weeks, I'll look into this when I'm back. thx Bruno

rejeep commented 9 years ago

I'm going on holiday today as well, so no hurry! :)

It should be fairly straight forward I think. Let me know if you have any questions!

Fuco1 commented 6 years ago

This would be nice for docker-compose stacks as well. I will try to look into this.

asheshambasta commented 6 years ago

This will be quite nice indeed. I'm currently trying to get prodigy to work with MySQL on a mac and it seems like I cannot kill or stop it via a signal and I could've worked around this issue with a command instead. @Fuco1 have you had the chance to look into this?

Fuco1 commented 6 years ago

Hey @asheshambasta, not yet, somehow docker started working fine with signals so my use-case was solved :blush: But I hope to get to it someday.