apache2ctl -k graceful is not really an option for me because I would have to give root privileges to my apache/php. <br><br>&quot;<span style><font color="#222222" face="arial, sans-serif">AFAIK, this isn&#39;t possible.&quot; I don&#39;t know anything about apache modules and stuff so the next thing I say may not be applicable or just plain stupid, but maybe each process will hold their own copy of configuration so the apache process will be able to alter it&#39;s configuration upon detection of file change. There is certainly that added overhead of &quot;checking last modified date&quot; and keeping more copies in memory, but this should not be the default behavior.</font></span><br>
<br><div class="gmail_quote">On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort <span dir="ltr">&lt;<a href="mailto:tbonfort@terriscope.fr">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">
AFAIK, this isn&#39;t possible. Inside an apache module, the configuration<br>
is considered read-only as it is shared between multiple worker<br>
threads/processed spawned by httpd.<br>
<br>
apachectl configtest &amp;&amp; apachectl graceful will restart the server<br>
gracefully, i.e. without aborting ongoing requests, and will load the<br>
new configuration for subsequent requests.<br>
<br>
--<br>
thomas<br>
<div><div class="h5"><br>
On Mon, Dec 5, 2011 at 23:37, John Taranu<br>
&lt;<a href="mailto:jtaranu@firstbasesolutions.com">jtaranu@firstbasesolutions.com</a>&gt; wrote:<br>
&gt; Thomas,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Is there a better way force MapCache to reload its configuration script than<br>
&gt; restarting apache?  I’m working on an application that will use two<br>
&gt; load-balanced web servers running MapCache, all pointing to a single central<br>
&gt; tile repository and a single central .xml configuration file.  The<br>
&gt; configuration file will occasionally be edited, either with deletions or<br>
&gt; additional tilesets.  Both web servers need to reload the updated<br>
&gt; configuration .xml.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Is it possible to set up MapCache to check if the config file was recently<br>
&gt; updated and, if so, reload the config .xml?  It looks like this is currently<br>
&gt; enabled under FastCGI, but not under Apache.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; John<br>
</div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>