3 # DO NOT EDIT - This file is being maintained by Chef
5 # Send output to the log
6 exec > /var/log/tile/update-lowzoom-<%= @style %>.log 2>&1
8 # Define function to update tiles from z0 to z12 for style "<%= @style %>"
12 --timestamp=$(stat -c %Y "/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml") \
13 --tile-dir=/srv/tile.openstreetmap.org/tiles \
14 --socket=/var/run/renderd/renderd.sock \
15 --num-threads=<%= node[:cpu][:total] - 1 %> \
16 --map="<%= @style %>" \
17 --max-load=<%= node[:cpu][:total] %> \
18 --min-zoom=0 --max-zoom=12
21 # Loop running the update command until it suceeds
27 # Update timestamp for style "<%= @style %>"
29 --reference="/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml" \
30 "/srv/tile.openstreetmap.org/tiles/<%= @style %>/planet-import-complete"