Skip to content

Commit 4f42b9f

Browse files
authored
chore: retry stopping PG if it initially fails (#789)
1 parent cce9046 commit 4f42b9f

File tree

1 file changed

+1
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+1
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ EOF
299299
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
300300
else
301301
echo "9. Stopping postgres; running pg_upgrade"
302-
systemctl stop postgresql
302+
retry 5 systemctl stop postgresql
303303
fi
304304

305305
su -c "$UPGRADE_COMMAND" -s "$SHELL" postgres

0 commit comments

Comments
 (0)