nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.
http://pypi.python.org/pypi/honcho
MIT License
1.6k stars 146 forks source link

Why isn't there "stop" command? #224

Closed naddika closed 3 years ago

naddika commented 3 years ago

There're "run" and "start". Why isn't there "stop"? How should one stop the processes then?

nickstenning commented 3 years ago

Honcho runs in the foreground. The processes stop when you stop or kill honcho (with Ctrl-C, for example). Conversely, honcho stops when the processes stop.

naddika commented 3 years ago

My goal is to run and stop the processes in a Procfile all at once. Therefore, to stop the process will I have to kill the Honcho process only?

nickstenning commented 3 years ago

Try it! If you Ctrl-C honcho, it will kill all the processes running under it.

naddika commented 3 years ago

Yeah, a bash script, apparently, has human hands and eyes, and can understand my commands given him by voice, to press Ctrl-C.

Regarding killing Honcho process - that would be a lot of hassle because I'd have to find a Honcho process first, and reliably so, distinguishing it among all other processes, via a bash script. How? Why isn't there functionality for killing a Honcho process implemented in the library itself?

And how about equering its status -- running, not running.... ?