Fixing RedHat init script

* Fixing the exit code for the status check.
* Adding sleep before pgrep for pid, in some cases process does not show
* up too fast.
* Replacing $DAEMON by $JAVA