stop postgresql to prevent database corruption

This commit is contained in:
Grzegorz Adam Kowalski 2019-03-14 10:42:58 +01:00
parent 18066e910f
commit e37c31d2f0

2
run.sh
View File

@ -28,6 +28,7 @@ if [ "$1" = "import" ]; then
# Import data # 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 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 exit 0
fi fi
@ -42,6 +43,7 @@ if [ "$1" = "run" ]; then
# Run # Run
sudo -u renderer renderd -f -c /usr/local/etc/renderd.conf sudo -u renderer renderd -f -c /usr/local/etc/renderd.conf
service postgresql stop
exit 0 exit 0
fi fi