]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/overpass/templates/default/overpass-import-db.erb
Remove otrs test role from naga
[chef.git] / cookbooks / overpass / templates / default / overpass-import-db.erb
index 22cfe642e512fe6a583e5ccf89c0e44ec651f1c2..b32a84f48818b8d4542a12374a308d0537056956 100644 (file)
@@ -3,7 +3,7 @@
 FNAME=$1
 
 if [[ "x$FNAME" == "x" ]]; then
-  echo "Usage: overpass-import-db.sh <OSM file>"
+  echo "Usage: overpass-import-db <OSM file>"
   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