Save on server resources
Print specially styled OpenStreetMap maps for detail surveys
Brought to you by:
kempelen
This patch for rendermymap-incron.sh will save on server resources by
Thanks to the serveradmin for the patch ;-)
!/bin/bash
# Passes the new rendering job file to the renderer
# Should be called from incron
# Incron example (watchdir, watchtype, startwhat, path+file as param)
#/srv/html/rendermymap-orig/jobs IN_CLOSE_WRITE /srv/osmrender/bin/rendermymap-incron.sh $@/$#
cd /srv/osmrender/bin/
lockfile -r 75 -l 600 .rendering-lock || exit
. rendermymap.config
ulimit -Sv1310720
nice -n 20 ./rendermymap.sh $* >>$LOGFILE 2>&1
rm -f .rendering-lock
Added to the code in Commit [66b525]
Related
Commit: [66b525]