Open
Description
The fundamental problem behind issue #136 was the use of stop
and start
in quick succession, where a running supervisor was seen as a successful start.
It would be easier to script against if the stop
CLI command only returns once the master is actually stopped.
To reproduce (assuming a running process):
$ sl-runctl stop && sl-runctl status
If the problem exists, then the supervisor information is returned. For example:
master pid: 28943
worker count: 1
worker id 6: { pid: 28964, uptime: 1445, startTime: 1434419524881 }
If the problem is resolved, then there should be an indication that the master is stopped. For example:
Communication error (connect ECONNREFUSED), check master is listening
A fix didn't seem trivial, so I might not get a chance to fix this in the near future, so suggestions would be welcome.