useful but needed modification

thanks for this.
I needed to modify it to be correct for install from repo, you assumed source install in the script. Noticed on RHEL 5.11, rpm from EPEL also didn’t have init script 🙁

Also a couple variable were mixed up. fixed it up and it works.