LOCKFILE=/home.local/osm/run/.osmupdate.lock
CHANGESFILE=/home.local/osm/run/osmosis-changes.osc.gz
EXPIRYFILE=/home.local/osm/run/expiredtiles.lst
+RERENDEREXPIREDTRIGGERFILE=/home.local/osm/run/rerenderexpiredtiles.setting
OSMOSISWORKDIR=/home.local/osm/.osmosis
WEBSTATEFILE=/var/www/lastdbupdate.txt
# Note: set the expire-tiles to 3 less than the real maximum,
echo -n "Updated database: now at upstream state of "
cat $WEBSTATEFILE
#touch /var/lib/tirex/tiles/planet-import-complete
-if [ -e $EXPIRYFILE ] ; then
+if [ -e $EXPIRYFILE -a -e $RERENDEREXPIREDTRIGGERFILE ] ; then
echo "Expiryfile exists. Telling tirex to rerender the tiles mentioned there..."
echo "Number of lines: `wc -l $EXPIRYFILE`"
# Used to be zoom 13-20 but that causes too much load. Reduced to 15-20.
+ # Trying completely without. Lots of load, way too many false positives. -unrz191 2015-09-04
cat $EXPIRYFILE | /home.local/osm/bin/osmtilecleanup.pl \
--action rerenderexpiredlist --zoom 15-20 \
--rrs /home.local/osm/bin/osmrerenderwrapper.sh \