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, 12:44

Wael's gravatar image

Wael
1126
accept rate: 0%

Be the first one to answer this question!
toggle preview

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:

×459
×115
×2

question asked: 08 May, 12:44

question was seen: 152 times

last updated: 08 May, 12:44

powered by OSQA