Stopping/starting renderd during map import. Moving tile cache clearing to import script.

This commit is contained in:
Roland 2023-08-17 11:47:34 -06:00
parent 6376e6539b
commit 6791e88baf
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 26 additions and 49 deletions

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
# Simple script which removes the Renderd map tile cache files.
# Re-execute this script if it wasn't called with sudo.
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
[ -d /var/lib/mod_tile/ajt ] && rm -rf /var/lib/mod_tile/ajt
[ -d /var/cache/renderd/tiles/ajt ] && rm -rf /var/cache/renderd/tiles/ajt
systemctl restart renderd