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 4f42b9f commit 4b74da7Copy full SHA for 4b74da7
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -95,7 +95,8 @@ cleanup() {
95
96
if [ "$IS_DRY_RUN" = false ]; then
97
echo "Restarting postgresql"
98
- systemctl restart postgresql
+ systemctl enable postgresql
99
+ retry 5 systemctl restart postgresql
100
fi
101
102
echo "Re-enabling extensions"
@@ -299,6 +300,8 @@ EOF
299
300
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
301
else
302
echo "9. Stopping postgres; running pg_upgrade"
303
304
+ systemctl disable postgresql
305
retry 5 systemctl stop postgresql
306
307
0 commit comments