<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Created DSpam startup scripts</title>
	<atom:link href="http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/</link>
	<description>How to build your Mac into a internet server using open source software</description>
	<lastBuildDate>Tue, 17 Jun 2008 18:25:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/comment-page-1/#comment-6111</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 11 Nov 2006 18:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/#comment-6111</guid>
		<description>Save this as /Library/LaunchDaemons/org.mysql.MySQL5.plist and launchd will take care of all dependencies and keep the process up.

You need a slightly different version for Apache2, since launchd doesn&#039;t get along with apps that shut down after less than 60 seconds.  The plist is (almost) the same, but I&#039;m calling a shell script that checks every 30 seconds to see if any httpd processes exist.  It exits (letting launchd launch apache2) if it doesn&#039;t find any.

Not sure if the other processes which you&#039;ve got startupItems for should use launchd, I only used it to get around startup problems.

If the xml below doesn&#039;t show up, let me know and I can email it to you.
&lt;code&gt;
	GroupName
	admin
	Label
	MySQL5
	OnDemand
	
	Program
	/usr/local/mysql/bin/mysqld_safe
	RunAtLoad
	
	ServiceDescription
	Launches the MySQL database server
	UserName
	root
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Save this as /Library/LaunchDaemons/org.mysql.MySQL5.plist and launchd will take care of all dependencies and keep the process up.</p>
<p>You need a slightly different version for Apache2, since launchd doesn&#8217;t get along with apps that shut down after less than 60 seconds.  The plist is (almost) the same, but I&#8217;m calling a shell script that checks every 30 seconds to see if any httpd processes exist.  It exits (letting launchd launch apache2) if it doesn&#8217;t find any.</p>
<p>Not sure if the other processes which you&#8217;ve got startupItems for should use launchd, I only used it to get around startup problems.</p>
<p>If the xml below doesn&#8217;t show up, let me know and I can email it to you.<br />
&lt;code&gt;<br />
	GroupName<br />
	admin<br />
	Label<br />
	MySQL5<br />
	OnDemand</p>
<p>	Program<br />
	/usr/local/mysql/bin/mysqld_safe<br />
	RunAtLoad</p>
<p>	ServiceDescription<br />
	Launches the MySQL database server<br />
	UserName<br />
	root<br />
&lt;/code&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/comment-page-1/#comment-6021</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 11 Nov 2006 03:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/2006/11/07/created-dspam-startup-scripts/#comment-6021</guid>
		<description>Actually, those are StartupItems, which are different from Launchd&#039;s Agents.

I was having some problems with the Apache and MySQLCOM startup items and was about to switch my ISP in a box setup to that startup manager.</description>
		<content:encoded><![CDATA[<p>Actually, those are StartupItems, which are different from Launchd&#8217;s Agents.</p>
<p>I was having some problems with the Apache and MySQLCOM startup items and was about to switch my ISP in a box setup to that startup manager.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

