<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BioTeam Inc. &#187; launchd</title>
	<atom:link href="http://blog.bioteam.net/tag/launchd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bioteam.net</link>
	<description>Latest news: publications, presentations, projects and training classes</description>
	<lastBuildDate>Thu, 29 Jul 2010 14:15:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SGE launchd script maker for Apple OS X 10.5 Leopard</title>
		<link>http://blog.bioteam.net/2008/07/15/sge-launchd-script-maker-for-apple-os-x-105-leopard/</link>
		<comments>http://blog.bioteam.net/2008/07/15/sge-launchd-script-maker-for-apple-os-x-105-leopard/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 17:51:09 +0000</pubDate>
		<dc:creator>blogadmin</dc:creator>
				<category><![CDATA[Publications]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[gridengine]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.bioteam.net/?p=115</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bioteam.net/wp-content/uploads/2008/03/sge-launchd-qmaster-plist-1.png"><img class="aligncenter size-medium wp-image-74" title="SGE plist image" src="http://blog.bioteam.net/wp-content/uploads/2008/03/sge-launchd-qmaster-plist-1.png" alt="" width="300" height="177" /></a></p>
<p>This post is a follow-up to the article discussing Bill Van Etten&#8217;s  <a href="http://http://blog.bioteam.net/2008/03/04/apple-os-x-105-launchd-scripts-for-grid-engine/">OS X Launchd scripts for Grid Engine</a>.</p>
<p>We now have a perl script that will automatically create site-appropriate launchd plist files for Grid Engine &#8211; 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.</p>
<p>The<em> new-in-Leopard</em> &#8220;launchd&#8221; framewortk is Apple&#8217;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 &#8230;) please visit the Grid Engine wiki page covering Apple Launchd:</p>
<p><a href="http://wiki.gridengine.info/wiki/index.php/GridEngine_launchd">http://wiki.gridengine.info/wiki/index.php/GridEngine_launchd</a></p>
<p><strong>Download the script here:</strong></p>
<p><a href="http://blog.bioteam.net/wp-content/uploads/2008/07/sge-launchd-scriptmaker.tgz">sge-launchd-scriptmaker</a></p>
<img src="http://blog.bioteam.net/?ak_action=api_record_view&id=115&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.bioteam.net/2008/07/15/sge-launchd-script-maker-for-apple-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Apple OS X 10.5 launchd scripts for Grid Engine</title>
		<link>http://blog.bioteam.net/2008/03/04/apple-os-x-105-launchd-scripts-for-grid-engine/</link>
		<comments>http://blog.bioteam.net/2008/03/04/apple-os-x-105-launchd-scripts-for-grid-engine/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:11:35 +0000</pubDate>
		<dc:creator>blogadmin</dc:creator>
				<category><![CDATA[Publications]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gridengine]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[SGE]]></category>

		<guid isPermaLink="false">http://blog.bioteam.net/2008/03/04/apple-os-x-105-launchd-scripts-for-grid-engine/</guid>
		<description><![CDATA[William Van Etten has produced new scripts for the Apple OS X &#8220;Launchd&#8221; framework used by Mac OS X 10.5 &#8220;Leopard&#8221; systems. Moving forward it seems that Apple eventually intends to phase out the SystemStarter methods for starting/stopping daemons and services in favor of the newer launchd mechanisms. A Wiki entry over at http://gridengine.info explains [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://blog.bioteam.net/wp-content/uploads/2008/03/sge-launchd-qmaster-plist-1.png" alt="SGE plist image" /></p>
<p> William Van Etten has produced new scripts for the Apple OS X &#8220;Launchd&#8221; framework used by Mac OS X 10.5 &#8220;Leopard&#8221; systems. Moving forward it seems that Apple eventually intends to phase out the SystemStarter methods for starting/stopping daemons and services in favor of the newer launchd mechanisms.</p>
<p>A <a href="http://wiki.gridengine.info/wiki/index.php/GridEngine_launchd" target="_blank">Wiki entry</a> over at http://gridengine.info explains some of the problems with Launchd and shows an (older) potential workaround.</p>
<p>The new scripts referenced in this blog post take advantage of a newly discovered (<em>by us</em>) environment variable called &#8220;<code>SGE_ND</code>&#8221; &#8212; if this variable is set, the SGE daemons will not fork off and daemonize (something that Apple Launchd does not allow). By including the &#8220;<code>SGE_ND=1</code>&#8221; environment variable into the Grid Engine startup environment we are able to produce launchd-compatible scripts that function well at automatically enabling Grid Engine startup and shutdown (and theoretically automatic restart of crashed daemons).</p>
<p>Bill has created three launchd.plist(s)&#8230;</p>
<p>1) sgeqmaster.plist<br />
2) sgeschedd.plist<br />
3) sgeexecd.plist</p>
<p>Using these plists, one can load with &#8230;<br />
<code><br />
launchctl load /Library/LaunchDaemons/net.sunsource.gridengine.sgeqmaster.plist<br />
launchctl load /Library/LaunchDaemons/net.sunsource.gridengine.sgeschedd.plist<br />
launchctl load /Library/LaunchDaemons/net.sunsource.gridengine.sgeexecd.plist<br />
</code><br />
and start/stop with&#8230;<br />
<code><br />
launchctl start net.sunsource.gridengine.sgeqmaster<br />
launchctl start net.sunsource.gridengine.sgeschedd<br />
launchctl start net.sunsource.gridengine.sgeexecd</code><br />
<code><br />
launchctl stop net.sunsource.gridengine.sgeqmaster<br />
launchctl stop net.sunsource.gridengine.sgeschedd<br />
launchctl stop net.sunsource.gridengine.sgeexecd</code></p>
<p>If these scripts are installed in &#8220;/Library/LaunchDaemons/&#8221; they will also activate automatically on system boot or restarts.</p>
<p><strong>Download link &amp; Installation Instructions</strong></p>
<p>The .plist scripts are available here: <a href="http://blog.bioteam.net/wp-content/uploads/2008/03/sge_launchd.tgz" title="sge_launchd.tgz">sge_launchd.tgz</a></p>
<p>To install them:</p>
<ol>
<li>Download the gzipped tarball</li>
<li>Examine each .plist file in a text editor or the Apple &#8220;Plist Property Editor&#8221; program &#8211; there will be paths and variables that may have to be altered to match your local site configuration in each file</li>
<li>Install as root in &#8220;/Library/LaunchDaemons/&#8221;</li>
</ol>
<p>To make an Apple 10.5.x system aware of the new scripts without rebooting or restarting, use the &#8220;launchctl load&#8221; command shown above.</p>
<img src="http://blog.bioteam.net/?ak_action=api_record_view&id=75&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.bioteam.net/2008/03/04/apple-os-x-105-launchd-scripts-for-grid-engine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
