<?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: As Close to A Real Daemon As Bash Scripts Get</title>
	<atom:link href="http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/</link>
	<description>The random things that spew forth from my brain...</description>
	<lastBuildDate>Fri, 25 Jan 2013 23:59:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24222</generator>
	<item>
		<title>By: Anthony Bouch</title>
		<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/comment-page-1/#comment-15042</link>
		<dc:creator>Anthony Bouch</dc:creator>
		<pubDate>Wed, 23 Jan 2013 04:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=284#comment-15042</guid>
		<description><![CDATA[Excellent - thanks. 
 
The only change I made was  
 
start) 
if [ -f $MY_PIDFILE ]; then 
echo &quot;Daemon is already running.&quot; 
exit 0 
fi 
... 
 
In cases where we want to be sure that there is only one instance of the daemon running. ]]></description>
		<content:encoded><![CDATA[<p>Excellent &#8211; thanks. </p>
<p>The only change I made was  </p>
<p>start)<br />
if [ -f $MY_PIDFILE ]; then<br />
echo &quot;Daemon is already running.&quot;<br />
exit 0<br />
fi<br />
&#8230; </p>
<p>In cases where we want to be sure that there is only one instance of the daemon running. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Butcher</title>
		<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/comment-page-1/#comment-10616</link>
		<dc:creator>Ken Butcher</dc:creator>
		<pubDate>Mon, 02 Jan 2012 18:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=284#comment-10616</guid>
		<description><![CDATA[So many people want to know how to write a daemon script but almost all the answers to their legitimate questions seem to be of the RTFM variety. It&#039;s too bad that the folks who feel they must be so arrogant can&#039;t be more helpful. You, sir, are an angel! 
 
The three most important concepts regarding daemonizing (is that a real word?) are looping, backgrounding and detaching and they are often not discussed in other posts. 
Thank you. ]]></description>
		<content:encoded><![CDATA[<p>So many people want to know how to write a daemon script but almost all the answers to their legitimate questions seem to be of the RTFM variety. It&#8217;s too bad that the folks who feel they must be so arrogant can&#8217;t be more helpful. You, sir, are an angel!</p>
<p>The three most important concepts regarding daemonizing (is that a real word?) are looping, backgrounding and detaching and they are often not discussed in other posts.</p>
<p>Thank you. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico de Wet</title>
		<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/comment-page-1/#comment-10508</link>
		<dc:creator>Nico de Wet</dc:creator>
		<pubDate>Tue, 11 Oct 2011 23:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=284#comment-10508</guid>
		<description><![CDATA[I was just busy daemonizing a script and noting a &quot;TODO pid file&quot; when I came across this. Thanks! 
 
Just to note, your function must be called &quot;payload&quot;, the post already says this, but it didn&#039;t sink in on localhost, so to speak. ]]></description>
		<content:encoded><![CDATA[<p>I was just busy daemonizing a script and noting a &quot;TODO pid file&quot; when I came across this. Thanks!</p>
<p>Just to note, your function must be called &quot;payload&quot;, the post already says this, but it didn&#039;t sink in on localhost, so to speak. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/comment-page-1/#comment-8499</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Mon, 12 Oct 2009 17:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=284#comment-8499</guid>
		<description><![CDATA[awesome! thanks! ]]></description>
		<content:encoded><![CDATA[<p>awesome! thanks! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Riley</title>
		<link>http://blog.apokalyptik.com/2008/05/09/as-close-to-a-real-daemon-as-bash-scripts-get/comment-page-1/#comment-8498</link>
		<dc:creator>Ken Riley</dc:creator>
		<pubDate>Mon, 12 Oct 2009 16:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=284#comment-8498</guid>
		<description><![CDATA[Thanks for the fantastic script! I&#039;ve created a version that works on the Mac that&#039;s available here: 
 
  &lt;a href=&quot;http://www.nodots.com/mac-daemon-functions.sh&quot; rel=&quot;nofollow&quot;&gt;http://www.nodots.com/mac-daemon-functions.sh&lt;/a&gt; 
 
In addition to the script, users will need to install proctools to get a Mac version of pgrep: 
 
&lt;code&gt;$ sudo port install proctools&lt;/code&gt; 
 
Best regards, 
Ken ]]></description>
		<content:encoded><![CDATA[<p>Thanks for the fantastic script! I&#039;ve created a version that works on the Mac that&#039;s available here:</p>
<p>  <a href="http://www.nodots.com/mac-daemon-functions.sh" rel="nofollow">http://www.nodots.com/mac-daemon-functions.sh</a></p>
<p>In addition to the script, users will need to install proctools to get a Mac version of pgrep:</p>
<p>&lt;code&gt;$ sudo port install proctools&lt;/code&gt;</p>
<p>Best regards,</p>
<p>Ken </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching using memcached
Object Caching 555/574 objects using memcached

 Served from: blog.apokalyptik.com @ 2013-05-22 18:18:03 by W3 Total Cache -->