<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>HJK Solutions: Tag runit</title>
    <link>http://blog.hjksolutions.com/articles/tag/runit</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>We Launch Startups</description>
    <item>
      <title>Using runit with Upstart</title>
      <description>&lt;p&gt;When using &lt;a href="http://smarden.org/runit/"&gt;runit&lt;/a&gt; with &lt;a href="http://upstart.ubuntu.com"&gt;Upstart&lt;/a&gt; in Ubuntu 7.04, you&amp;#8217;re going to run in to a couple of problems.  The first is that the package doesn&amp;#8217;t install cleanly without the presence of &lt;code&gt;/etc/inittab&lt;/code&gt;, which Upstart doesn&amp;#8217;t need.  You can fix that with a simple:&lt;/p&gt;


&lt;pre&gt;
    &lt;code&gt;
$ sudo touch /etc/inittab
    &lt;/code&gt;
&lt;/pre&gt;

	&lt;p&gt;Now, you need to actually add runit to Upstart.  You do this by putting the following in &lt;code&gt;/etc/event.d/runsvdir&lt;/code&gt;:&lt;/p&gt;


&lt;pre&gt;
    &lt;code&gt;
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
respawn
exec /usr/sbin/runsvdir-start
    &lt;/code&gt;
&lt;/pre&gt;

	&lt;p&gt;This will cause &lt;code&gt;runsvdir-start&lt;/code&gt; to run during runlevel 2, 3, 4, and 5, stop when the system is going to be shutdown, and respawn if it goes away.&lt;/p&gt;


	&lt;p&gt;If you are on Ubuntu 6.10, the syntax is a bit different:&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
respawn /usr/sbin/runsvdir-start
&lt;/code&gt;
&lt;/pre&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:52:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:eb3c5be5-0f6f-46b9-9b68-d36ea1bc10ef</guid>
      <author>Adam Jacob</author>
      <link>http://blog.hjksolutions.com/articles/2007/07/20/using-runit-with-upstart</link>
      <category>solutions</category>
      <category>runit</category>
      <category>upstart</category>
      <category>ubuntu</category>
      <trackback:ping>http://blog.hjksolutions.com/articles/trackback/5</trackback:ping>
    </item>
  </channel>
</rss>
