<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.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>lighty's life: Tag angel</title>
    <link>http://blog.lighttpd.net/articles/tag/angel</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>There is an Angel for lighty</title>
      <description>&lt;p&gt;In &lt;a href="http://trac.lighttpd.net/trac/changeset/1981"&gt;changeset [1981]&lt;/a&gt; I added a angel process to the lighttpd build. It solves several problems when we have everything running as expected:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;span class="caps"&gt;SIGHUP&lt;/span&gt; leads to a graceful restart (config reloads)&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;SIGINT&lt;/span&gt; is graceful shutdown as now&lt;/li&gt;
		&lt;li&gt;all unhandled signals lead to a restart of the lighttpd process&lt;/li&gt;
	&lt;/ul&gt;
&lt;p&gt;We have to be careful with the angel as it will stay alive and stay running as the user it is started as (usually root). That&amp;#8217;s the only way we can restart lighttpd from scratch on restart.&lt;/p&gt;


	&lt;p&gt;This will also solve other problems in 1.5.0:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://trac.lighttpd.net/trac/ticket/1271"&gt;bug #1271, unsafe logfiles&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;... and perhaps others&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The angel has to implement some security measures to stay clean:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;the angel can only start the lighttpd binary which is compiled into the angel at compile time&lt;/li&gt;
		&lt;li&gt;if run as root the starting user has to be root too or be in the same group as the owner of the lighttpd binary&lt;/li&gt;
		&lt;li&gt;... and perhaps more restrictions&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;As extra features we will add ulimit support to let lighttpd die in case it is using to much memory. But that&amp;#8217;s for later.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Sep 2007 22:36:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e0c50ba0-763d-4ab4-af0e-bf7ef161f803</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2007/09/02/there-is-an-angel-for-lighty</link>
      <category>lighttpd</category>
      <category>angel</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/4739</trackback:ping>
    </item>
  </channel>
</rss>
