…and here’s how you fix it.
After installing gridengine, before running install_sge (or install_qmaster / install_execd):
- edit /usr/share/gridengine/util/install_modules/install_common.sh
- find the CreateGSEStartUpScripts() function and nuke the entire contents of the “if [ $create = true]; then” up until (but not including) the “if [ $euid = 0 …]” line.
- save and exit the file
- edit /usr/share/gridengine/util/install_modules/install_qmaster.sh
- find the StartQmaster() function and change the ‘$SGE_STARTUP_FILE -qmaster’ line to read ‘/etc/init.d/sgemaster’ and remove the remaining contents of the function up until (but not including) the ‘$INFOTEXT …’ line
- save and exit the file
Now you can run the appropriate installation program.
The problem is that the RHEL5 packaging tries to remove the gridengine startup scripts and replaces them with its own startup scripts. Sadly the job wasn’t well done (and obviously wasn’t tested). I’ve notified the package maintainers but this will get you going until the package has been fixed (given that the package has existed in this form since 2008, I’m guessing it isn’t that popular of a package as-is).