X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b..f8a576aca1270f703f38c3257cf533390692de06:/cookbooks/overpass/templates/default/overpass-import-db.erb?ds=inline diff --git a/cookbooks/overpass/templates/default/overpass-import-db.erb b/cookbooks/overpass/templates/default/overpass-import-db.erb index 22cfe642e..b32a84f48 100644 --- a/cookbooks/overpass/templates/default/overpass-import-db.erb +++ b/cookbooks/overpass/templates/default/overpass-import-db.erb @@ -3,7 +3,7 @@ FNAME=$1 if [[ "x$FNAME" == "x" ]]; then - echo "Usage: overpass-import-db.sh " + echo "Usage: overpass-import-db " exit 1 fi @@ -21,10 +21,10 @@ META=--keep-attic META= <% end -%> -sudo systemctl stop overpass-area-processor.timer -sudo systemctl stop overpass-update -sudo systemctl stop overpass-area-dispatcher -sudo systemctl stop overpass-dispatcher +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 sleep 2 @@ -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