elasticsearch/elasticsearch-servicewrapper — Issue #11: Exit code issue
Author: harlanbarnes
Created: 2011-12-12 18:08:01+00:00
State: open

I found that when running elasticsearch status as root when RUN_AS_USER was set to a non-root user, the exit code was always zero (regardless of whether the process was running.) This would trip up other utilities that were trying to determine the running status of the service through that command.