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
|
||||
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
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user