Hi Ivan,<div><br></div><div>I dont't know if I am running in wsgi... I running the default installation on ubuntu 10.10 (apt-get install tilecache) with apache mod_fcgi...</div><div><br></div><div>ScriptAlias /tilecache /usr/lib/cgi-bin/tilecache.fcgi</div>
<div><br></div><div>what script should I modify ?</div><div><br></div><div>thanks<br><br><div class="gmail_quote">On Wed, Nov 3, 2010 at 11:10 AM, Ivan Mincik <span dir="ltr"><<a href="mailto:ivan.mincik@gista.sk">ivan.mincik@gista.sk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 11/03/2010 11:45 AM, <a href="mailto:manel.clos@ajgirona.cat" target="_blank">manel.clos@ajgirona.cat</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sebastian,<br>
<br>
if you are running on wsgi, you can modify your script to intercept a special url like:<br>
<br>
if environ['PATH_INFO'] == "/reload_config":<br>
theService = Service.load(cfgs)<br>
content = "Config reload OK"<br>
start_response('200 OK',[('Content-type','text/plain'),<br>
('Pragma','no cache'),<br>
('Cache-Control','no-cache, must-revalidate')])<br>
return content<br>
When in a normal request theService will be reused.<br>
<br>
</blockquote></div>
One note from my experience:<br>
in wsgi script, You should use 'processes=1' parameter in WSGIDaemonProcess otherwise it will not work correctly (at least in my case).<br><font color="#888888">
<br>
<br>
-- <br>
Ivan Mincik, Gista s.r.o.<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@lists.osgeo.org" target="_blank">Tilecache@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/tilecache" target="_blank">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Sebastian E. Ovide<br><br><br><br><br>
</div>