]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/update-lowzoom.erb
Ignore lost+found when cleaning up tiles
[chef.git] / cookbooks / tile / templates / default / update-lowzoom.erb
1 #!/bin/bash
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 # Send output to the log
6 exec > /var/log/tile/update-lowzoom-<%= @style %>.log 2>&1
7
8 # Update tiles from z0 to z12 for style "<%= @style %>"
9 render_list \
10   --all --force \
11   --tile-dir=/srv/tile.openstreetmap.org/tiles \
12   --socket=/var/run/renderd/renderd.sock \
13   --num-threads=<%= ( node[:cpu][:total] - 2 ) / 2 %> \
14   --map="<%= @style %>" \
15   --max-load=70 \
16   --min-zoom=0 --max-zoom=12
17
18 # Update timestamp for style "<%= @style %>"
19 touch \
20   --reference="/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml" \
21   "/srv/tile.openstreetmap.org/tiles/<%= @style %>/planet-import-complete"
22
23 exit 0