<?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>Robby on Rails: Lighttpd, crontab, and server reboots</title>
    <link>http://www.robbyonrails.com/articles/2005/12/09/lighttpd-crontab-and-server-reboots</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>Lighttpd, crontab, and server reboots</title>
      <description>&lt;p&gt;I&amp;#8217;ll be the first to admit that server reboots do happen. Whether they are for planned hardware upgrades or the unexpected runaway &lt;span class="caps"&gt;CPU&lt;/span&gt; processes&amp;#8230;they can cause some problems for your applications.&lt;/p&gt;


	&lt;p&gt;Recently, we had an unexpected outage on one of our servers and noticed that some of the lighttpd instances were not restarted automatically. I personally went and started up each one manuually and documented who they all were. We wanted to build a nice solution to this&amp;#8230; but because every user has their own method of invoking lighttpd and we kind of let you run free with that&amp;#8230; the idea to build one init script to meet everyones needs&amp;#8230; isn&amp;#8217;t currently practical. We want you to have some freedom with that and we can help you along the way. :-)&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;So&amp;#8230; what should you do?&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Well, &lt;a href="http://david.planetargon.us"&gt;David Gibbons&lt;/a&gt; (our &lt;a href="http://www.robbyonrails.com/articles/2005/12/05/another-brick-in-the-wall"&gt;new Lead Systems Administrator&lt;/a&gt;) has a nice tip on his blog, &lt;a href="http://david.planetargon.us/articles/2005/12/09/a-cool-trick-with-cron"&gt;a cool trick with cron&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;He shows you how to use the &lt;code&gt;@reboot&lt;/code&gt; option in crontab for scheduling scripts to startup on a reboot.&lt;/p&gt;


	&lt;p&gt;This is great to use and should work if you are a hosting customer at &lt;a href="http://www.planetargon.com"&gt;&lt;span class="caps"&gt;PLANET ARGON&lt;/span&gt;&lt;/a&gt;. Expect more little tricks like this in the future as David has many up his sleeve. You might want to subscribe to his brand new &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt; blog &lt;a href="http://david.planetargon.us/xml/rss20/feed.xml"&gt;&lt;span class="caps"&gt;RSS&lt;/span&gt; feed&lt;/a&gt;.
 ;-)&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="keyword"&gt;class &lt;/span&gt;&lt;span class="class"&gt;David&lt;/span&gt; &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt; &lt;span class="constant"&gt;ActiveRecord&lt;/span&gt;&lt;span class="punct"&gt;::&lt;/span&gt;&lt;span class="constant"&gt;Base&lt;/span&gt;
  &lt;span class="ident"&gt;has_many&lt;/span&gt; &lt;span class="symbol"&gt;:tricks&lt;/span&gt;
&lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Have a great weekend!&lt;/p&gt;
</description>
      <pubDate>Fri, 09 Dec 2005 19:41:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:059c659631309d8b554df2d069131a7d</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2005/12/09/lighttpd-crontab-and-server-reboots</link>
      <category>crontab</category>
      <category>lighttpd</category>
      <category>hosting</category>
    </item>
  </channel>
</rss>
