<?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>kluner.net &#187; projects</title>
	<atom:link href="http://www.kluner.net/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kluner.net</link>
	<description>sysadmin madness, in relative perspective</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>daemontools on redhat enterprise 6.0</title>
		<link>http://www.kluner.net/2011/04/04/daemontools-on-redhat-enterprise-6-0/</link>
		<comments>http://www.kluner.net/2011/04/04/daemontools-on-redhat-enterprise-6-0/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 08:49:29 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[red hat]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=459</guid>
		<description><![CDATA[So, for a project I needed to get something running in order to insure memcached would keep on running. The (for me) natural choice for this was daemontools (0.76 at time of writing). There are a couple of things you have to pay attention to, in order to get this going on RHEL 6. (and [...]]]></description>
			<content:encoded><![CDATA[<p>So, for a project I needed to get something running in order to insure memcached would keep on running. The (for me) natural choice for this was daemontools (0.76 at time of writing).</p>
<p>There are a couple of things you have to pay attention to, in order to get this going on RHEL 6. (and I suppose many other Linux distro&#8217;s)</p>
<h2>Phase 1 &#8211; get the source and compile it</h2>
<p>get the source tarball <a title="Daemontools 0.76" href="http://cr.yp.to/daemontools/daemontools-0.76.tar.gz" target="_blank">here</a> (note: this might not be the current version anymore!) and download it to /usr/local/src</p>
<ul>
<li>unpack it with tar -zvxf daemontools-0.76.tar.gz and cd into admin/daemontools-0.76.</li>
<li>edit src/conf-cc and add &#8216;-include /usr/include/errno.h&#8217; at the end of the line. (anywhere is fine, really)</li>
<li>run package/install</li>
</ul>
<p>this should give you the needed files in /command and an existing /service</p>
<h2>Phase 2 &#8211; fixing startup</h2>
<p>Daemontools requires a somewhat different approach to starting up then you might be used to. ( the most common way being /etc/init.d/&lt;name&gt;, and using chkconfig to influence when it starts). Daemontools should be started on boot, and init must be told to restart it when it dies. This ensures continued operation. The installer you ran in phase 1, took care of this by adding a line in /etc/inittab, but that&#8217;s an old method, and for the sake of continued operation (and working straight away) we&#8217;ll use the new method:</p>
<ul>
<li>Remove the added line from /etc/inittab.</li>
<li>cd /etc/init</li>
<li>create a new file called svscan.conf, and put the following contents in:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">start on runlevel <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">345</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
respawn
<span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000; font-weight: bold;">/</span>command<span style="color: #000000; font-weight: bold;">/</span>svscanboot</pre></div></div>

<p>now, tell init, it should re-read it&#8217;s configuration, and then start svscanboot:</p>
<ul>
<li>initctl reload-configuration</li>
<li>initctl start svscan</li>
</ul>
<p>if you check now, you should see a happily running svscan, and daemontools is ready to kick some:</p>
<pre>2676 ?        Ss     0:00 /bin/sh /command/svscanboot
2678 ?        S      0:00  \_ svscan /service</pre>
<p>Enjoy! I hope this little post was helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2011/04/04/daemontools-on-redhat-enterprise-6-0/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>IPv6</title>
		<link>http://www.kluner.net/2011/01/21/ipv6/</link>
		<comments>http://www.kluner.net/2011/01/21/ipv6/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 10:56:44 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=441</guid>
		<description><![CDATA[This website is now IPv6 compatible! I encourage everyone to join in.]]></description>
			<content:encoded><![CDATA[<p>This website is now IPv6 compatible! <a href='http://ipv6-test.com/validate.php?url=referer'><img src='http://ipv6-test.com/button-ipv6-small.png' border='0' align='right'></a></p>
<p>I encourage everyone to join in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2011/01/21/ipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>note to self :</title>
		<link>http://www.kluner.net/2009/08/17/note-to-self/</link>
		<comments>http://www.kluner.net/2009/08/17/note-to-self/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 11:26:25 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[chaotic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[murphy]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[stupidity]]></category>
		<category><![CDATA[world]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=305</guid>
		<description><![CDATA[remember to make backups of all your sites / content before completely reinstalling a server.]]></description>
			<content:encoded><![CDATA[<p>remember to make backups of all your sites / content before completely reinstalling a server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2009/08/17/note-to-self/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

