From 09b86cce66f00aec43bdb0b4b86421adfffe2cf4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Nov 2023 22:39:37 +0000 Subject: [PATCH] Track sequence and timestamp of last update --- cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb b/cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb index e2cf08b3a..0ad14e803 100644 --- a/cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb +++ b/cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb @@ -2,6 +2,9 @@ # DO NOT EDIT - This file is being maintained by Chef +sequence="$1" +timestamp="$2" + render_expired \ --map=default \ --socket=/var/run/renderd/renderd.sock \ @@ -10,3 +13,6 @@ render_expired \ --touch-from=13 < /var/lib/replicate/dirty-tiles.txt rm -f /var/lib/replicate/dirty-tiles.txt + +echo "$sequence" > /var/log/replicate/sequence.txt +echo "$timestamp" > /var/log/replicate/timestamp.txt -- 2.39.5