Fixing RedHat init script (PIDFILE and status)

* 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