From e37c31d2f0556f950db23f909d62b18cd3e60005 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Kowalski Date: Thu, 14 Mar 2019 10:42:58 +0100 Subject: [PATCH] stop postgresql to prevent database corruption --- run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 353c9bd..701d33e 100755 --- a/run.sh +++ b/run.sh @@ -28,6 +28,7 @@ if [ "$1" = "import" ]; then # Import data sudo -u renderer osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script /home/renderer/src/openstreetmap-carto/openstreetmap-carto.lua -C 2048 --number-processes ${THREADS:-4} -S /home/renderer/src/openstreetmap-carto/openstreetmap-carto.style /data.osm.pbf + service postgresql stop exit 0 fi @@ -42,9 +43,10 @@ if [ "$1" = "run" ]; then # Run sudo -u renderer renderd -f -c /usr/local/etc/renderd.conf + service postgresql stop exit 0 fi echo "invalid command" -exit 1 \ No newline at end of file +exit 1