apache/zookeeper — pull request #21 by marvingreenberg (2014-09-30 20:47:56+00:00)
Title: Prevent 'STARTED' message when zookeeper fails immediately

Exit status from backgrounded process not available to shell
so 'STARTED' message displayed when java command fails immediately.
Write "_ZOO_ERR" file in background on failure, allowing immediate
failures to be detected by zkServer.sh script. The sleeps are necessary
because of setup time for background processes to get started.