X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c91352f2a61adf692af66e3b860d8dba1a06d316..b7c12630cb9de017d76fe60ff296534d6d061399:/cookbooks/overpass/templates/default/overpass-import-db.erb diff --git a/cookbooks/overpass/templates/default/overpass-import-db.erb b/cookbooks/overpass/templates/default/overpass-import-db.erb index 44be6e2bb..40367de17 100644 --- a/cookbooks/overpass/templates/default/overpass-import-db.erb +++ b/cookbooks/overpass/templates/default/overpass-import-db.erb @@ -21,7 +21,7 @@ META=--keep-attic META= <% end -%> -sudo systemctl stop overpass-area-processor.timer || true +sudo systemctl stop overpass-area-processor || true sudo systemctl stop overpass-update || true sudo systemctl stop overpass-area-dispatcher || true sudo systemctl stop overpass-dispatcher || true @@ -40,7 +40,7 @@ echo "Import finished. Catching up with new changes." sudo systemctl start overpass-dispatcher sudo systemctl start overpass-area-dispatcher -PYOSMIUM="sudo -u <%= @username %> pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> -f <%= @basedir %>/db/replicate-id" +PYOSMIUM="sudo -u <%= @username %> pyosmium-get-changes --server <%= node[:overpass][:replication_url] %> --diff-type osc.gz -f <%= @basedir %>/db/replicate-id" <% if node[:overpass][:meta_mode] == "attic" -%> PYOSMIUM="$PYOSMIUM --no-deduplicate" <% end -%> @@ -70,5 +70,3 @@ echo "DB up-to-date. Processing areas." sudo -u <%= @username %> <%= @basedir %>/bin/osm3s_query --progress --rules <<%= @srcdir %>/rules/areas.osm3s echo "All updates done." - -sudo systemctl start overpass-area-processor.timer