SGE launchd script maker for Apple OS X 10.5 Leopard
This post is a follow-up to the article discussing Bill Van Etten’s OS X Launchd scripts for Grid Engine.
We now have a perl script that will automatically create site-appropriate launchd plist files for Grid Engine – the files are constructed by querying the SGE environment variables and running one of the SGE utility scripts. This may be a more convenient method than downloading our plist files and hand-editing them via the Apple plist editor program.
The new-in-Leopard “launchd” framewortk is Apple’s preferred system for handling system services and daemons. For more background on why launchd may be critical to Grid Engine on 10.5 systems (especially OS X Server 10.5.4 and later …) please visit the Grid Engine wiki page covering Apple Launchd:
http://wiki.gridengine.info/wiki/index.php/GridEngine_launchd
Download the script here:
Popularity: 36% [?]


Comment by Charles Howes on 28 January 2010:
There’s a modification to this script in the snowleopard version of inquiry.
Instead of running sge_qmaster by itself, it runs /common/sge/util/bootmaster.sh. This script contains the following code (on my system, at least):
————–cut-here—–>8——-
#!/bin/sh
hostname=`hostname`
while [ $hostname = 'localhost' ];
do
sleep 1
hostname=`hostname`
done
exec /common/sge/bin/darwin-x86/sge_qmaster
echo 99
—————–cut-here—-8<—-
Note: as the plist files were already present on the system, this script is not needed. I think.
Comment by blogadmin on 28 January 2010:
I don’t have time to write a new blog post but I wanted to put a quick note here that this script works perfectly fine with OS X 10.6 “Snow Leopard” server. We’ll write a new post in the future documenting SGE 6.2 on OS X Server 10.6.x
Pingback by Grid Engine 6.2 on Mac OS X : BioTeam Inc. on 7 February 2010:
[...] Download and run the sge-launchd-scriptmaker tarball from this BioTeam Blog post. [...]