nominatim: extend WAL archive delete script to check slave delay
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index beea8c8ac5e896cd99a25dfc0b9d086e3bb21c48..aba7f72aa9dea61a2281126b13dc2589be18d06f 100644 (file)
@@ -6,7 +6,7 @@
 DIR="$( cd "$( dirname "$0" )" && pwd )"
 cd $DIR/..
 
-while true
+while [ ! -f "<%= @update_stop_file %>" ]
 do
     # Send output to the log (logrotatable)
     exec >> /var/log/nominatim/update.log 2>&1