Thank you for the sudo rule suggestion and for detailed explanation!<div><br><div>Just one more question, if I use MapCache as fcgi, does this mean that on every request the configuration will be read and parsed ? or the configuration will be kept in memory until a the fastcgi process killed and respawned ?<br>

<br><div class="gmail_quote">On Wed, Feb 22, 2012 at 12:37 PM, thomas bonfort <span dir="ltr">&lt;<a href="mailto:tbonfort@terriscope.fr" target="_blank">tbonfort@terriscope.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Wed, Feb 22, 2012 at 11:22, Pavel Iacovlev &lt;<a href="mailto:iacovlev.pavel@gmail.com" target="_blank">iacovlev.pavel@gmail.com</a>&gt; wrote:<br>
&gt; apache2ctl -k graceful is not really an option for me because I would have<br>
&gt; to give root privileges to my apache/php.<br>
</div>you can create a sudo rule that only allows a user to run apache2ctl<br>
-k graceful without giving full root access.<br>
<div><br>
&gt;<br>
&gt; &quot;AFAIK, this isn&#39;t possible.&quot; I don&#39;t know anything about apache modules and<br>
&gt; stuff so the next thing I say may not be applicable or just plain stupid,<br>
&gt; but maybe each process will hold their own copy of configuration so the<br>
&gt; apache process will be able to alter it&#39;s configuration upon detection of<br>
&gt; file change. There is certainly that added overhead of &quot;checking last<br>
&gt; modified date&quot; and keeping more copies in memory, but this should not be the<br>
&gt; default behavior.<br>
<br>
</div>afaik, at the request level (which is were the freshness test would<br>
occur), there&#39;s no way of freeing the memory that allocated the<br>
initial configuration, and no way of allocating memory for the new<br>
configuration that would live across the upcoming requests.<br>
<div><div><br>
&gt;<br>
&gt; On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort &lt;<a href="mailto:tbonfort@terriscope.fr" target="_blank">tbonfort@terriscope.fr</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; AFAIK, this isn&#39;t possible. Inside an apache module, the configuration<br>
&gt;&gt; is considered read-only as it is shared between multiple worker<br>
&gt;&gt; threads/processed spawned by httpd.<br>
&gt;&gt;<br>
&gt;&gt; apachectl configtest &amp;&amp; apachectl graceful will restart the server<br>
&gt;&gt; gracefully, i.e. without aborting ongoing requests, and will load the<br>
&gt;&gt; new configuration for subsequent requests.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; thomas<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Dec 5, 2011 at 23:37, John Taranu<br>
&gt;&gt; &lt;<a href="mailto:jtaranu@firstbasesolutions.com" target="_blank">jtaranu@firstbasesolutions.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Thomas,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is there a better way force MapCache to reload its configuration script<br>
&gt;&gt; &gt; than<br>
&gt;&gt; &gt; restarting apache?  I’m working on an application that will use two<br>
&gt;&gt; &gt; load-balanced web servers running MapCache, all pointing to a single<br>
&gt;&gt; &gt; central<br>
&gt;&gt; &gt; tile repository and a single central .xml configuration file.  The<br>
&gt;&gt; &gt; configuration file will occasionally be edited, either with deletions or<br>
&gt;&gt; &gt; additional tilesets.  Both web servers need to reload the updated<br>
&gt;&gt; &gt; configuration .xml.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is it possible to set up MapCache to check if the config file was<br>
&gt;&gt; &gt; recently<br>
&gt;&gt; &gt; updated and, if so, reload the config .xml?  It looks like this is<br>
&gt;&gt; &gt; currently<br>
&gt;&gt; &gt; enabled under FastCGI, but not under Apache.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; John<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mapserver-users mailing list<br>
&gt;&gt; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>