We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8ed2f commit d090a1dCopy full SHA for d090a1d
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -300,9 +300,15 @@ EOF
300
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
301
else
302
echo "9. Stopping postgres; running pg_upgrade"
303
+
304
+ # Extra work to ensure postgres is actually stopped
305
+ # Mostly needed for PG12 projects with odd systemd unit behavior
306
retry 5 systemctl restart postgresql
307
systemctl disable postgresql
308
retry 5 systemctl stop postgresql
309
310
+ sleep 3
311
+ systemctl stop postgresql
312
fi
313
314
su -c "$UPGRADE_COMMAND" -s "$SHELL" postgres
0 commit comments