NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello everyone;

I have initialed overpass database from an extract for the state of Arizona, USA. I replaced "rules_loop.sh" script shipped with source with the following script:

#!/usr/bin/bash

DB_DIR=/mnt/nvme4/op2-meta
EXEC_DIR=/usr/local/bin
RULES_DIR=/usr/local/rules
LOG_FILE=$DB_DIR/logs/op_update_area.log

while [[ true ]]; do
{
  echo "`date '+%F %T'`: update started" >>$LOG_FILE
  #  ./osm3s_query --progress --rules <$DB_DIR/rules/areas.osm3s
  ionice -c 2 -n 7 nice -n 19 $EXEC_DIR/osm3s_query --progress --rules <$RULES_DIR/areas.osm3s
  echo "`date '+%F %T'`: update finished" >>$LOG_FILE
  sleep 3
}; done

Do I need this infinite loop for this small area extract? Is there any alternative?

Thank you all

Wael Hammoudeh

asked 08 May '22, 12:44

Wael's gravatar image

Wael
11336
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×118
×2

question asked: 08 May '22, 12:44

question was seen: 793 times

last updated: 08 May '22, 12:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum