stop postgresql to prevent database corruption
This commit is contained in:
parent
18066e910f
commit
e37c31d2f0
4
run.sh
4
run.sh
@ -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,9 +43,10 @@ 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
|
||||||
|
|
||||||
echo "invalid command"
|
echo "invalid command"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user