Closed smaximov closed 5 years ago
I wonder if this would also satisfy a feature request I thought of today - and that is to be able to stop a specific process. At times I want to just stop the rails
process and not everything in our Procfile, for when we need to run migrations and such (in our pre-alpha phase right now we tweaking migration files and run an alias of redodb
often.
There was a PR for this: #28.
Thanks @DarthSim, just tested v2.0.0 and it works like a charm!
Erlang/Elixir apps are usually started from within Erlang or Elixir shell (
erl
andiex
, respectively) in development.erl
installs a SIGINT handler which displays the so called "BREAK" menu instead of stopping the process:To actually stop the shell, the user have to select the
abort
command (a) or send SIGINT again. Elixir shell (iex
) adopts this behavior.Consider the following Procfile which runs a RabbitMQ server and a toy Elixir app:
Stopping processes run by this Procfile either by sending SIGINT (Ctrl+C) to the overmind process or by running
overmind kill
works fine because overmind also sends SIGKILL shortly after sending SIGINT (or so it seems). But in order to restart theconsumer
process I have to runovermind restart consumer
twice.The solution would be to send SIGQUIT instead (4.4 How do I quit the Erlang shell?). Can you add a way to specify the signal used to restart a process? Something like this: