lxyu / supervisor-quick

Bypass supervisor's nasty callbacks stack and make it quick!
http://lxyu.github.io/supervisor-quick
26 stars 8 forks source link

Process names matching #2

Open marcinn opened 10 years ago

marcinn commented 10 years ago

When using original (re)start/stop commands I can provide only process name as an argument (if process is not a group). quick* commands are incompatible in that case (ok, they don't need to be, but it would be usueful), but they do nothing when pattern does not match any process (I'm expecting an error):

supervisor> start abc
abc: ERROR (no such process)
supervisor> quickstart abc
supervisor> quickstart abc:
supervisor> 

("no such process" error expected)

And an example of exisiting process:

supervisor> start server
server: started
supervisor> quickstop server
supervisor>
supervisor> status server
server                           RUNNING    pid 8592, uptime 0:00:47

(STOPPED state expected)

Tested with Python 2.6.6 and 2.7.6.

lxyu commented 10 years ago

This is because supervisor-quick treat all things as process group currently.

I do plan to add support to single process and add a quickstatus for process group, you may expect it in the near future. Maybe this week or next.

Thanks for the report.

tonyo commented 9 years ago

It's been a while since the last message, but it would be really nice to see the above mentioned features implemented. Are there any updates?