<?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: Creating a Custom Dynamic Pre-login MOTD</title>
	<atom:link href="http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/</link>
	<description></description>
	<lastBuildDate>Mon, 11 Jan 2010 00:37:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Devin</title>
		<link>http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/comment-page-1/#comment-4</link>
		<dc:creator>Devin</dc:creator>
		<pubDate>Mon, 11 Jan 2010 00:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://tech.on-tap.org/?p=126#comment-4</guid>
		<description>Optionally, for a script that runs as a daemon, constantly polling data and updating /etc/issue, I would actually recommend converting this to a perl script, and use the following code to daemonize the perl script:

&lt;pre&gt;
# begin damonization
close(STDIN);
close(STDOUT);
close(STDERR);
exit if (fork());
exit if (fork());

while(1) {
    #
    # put the converted code here
    #

    sleep 30;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Optionally, for a script that runs as a daemon, constantly polling data and updating /etc/issue, I would actually recommend converting this to a perl script, and use the following code to daemonize the perl script:</p>
<pre>
# begin damonization
close(STDIN);
close(STDOUT);
close(STDERR);
exit if (fork());
exit if (fork());

while(1) {
    #
    # put the converted code here
    #

    sleep 30;
}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
