]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/replicate.erb
Tile: Modify ModTileRequestTimeout 3->2 to better avoid apache max-clients under...
[chef.git] / cookbooks / tile / templates / default / replicate.erb
index 862b6a5e766f46fa0e0beab39677371626c8cb9a..5d940375bf36e60d6e96a19c5b5692fc6b3e6a1e 100644 (file)
@@ -7,7 +7,7 @@
 # osmosis --read-replication-interval-init
 
 # Send output to the log
-exec > /var/log/replicate/replicate.log 2>&1
+exec > /var/log/tile/replicate.log 2>&1
 
 # Change to the replication state directory
 cd /var/lib/replicate
@@ -59,7 +59,7 @@ do
 <% end -%>
 
             # Expire tiles which are touched by the changes
-            /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
+            sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
        fi
 
         # Delete old downloads