openmicroscopy/openmicroscopy — pull request #2815 by bpindelski (2014-07-16 09:48:27+00:00)
Title: Use "pid" instead of "state" for checking service.

This fixes the situation where "state" would return "0"
as the return code for a started and stopped service (Ice 3.4).
"pid" returns "1" if the service isn't running.

To test, check on Ice 3.4 and Ice 3.5:
- start the server, import an image,
- try ``bin/omero admin reindex —reset 0`` - you should get a message about Indexer-0 still running,
- run ``bin/omero admin reindex --prepare`` - this will stop the indexing service,
- try again ``bin/omero admin reindex —reset 0`` - this time it should start reindexing.